I have created controls on window
WndProc(.....){
HWND hWndED;
switch(uMsg){
case WM_CREATE:
hWndED=CreateWindow(....);
ShowWindow(hWndED,SW_SHOW);
break;
case WM_COMMAND:
SendMessage(hWndED,....);
break;
}
}
My problem is when I call Sendmessage it is complaining that
hWndED is not initialized, So I clarified that becos WndProc is called every time when ever a message occurs in GetMessage Loop.
Now can any body help me how to rectifty this prob. Is declaring static is the only solution to make hWndED available all times or is there any other message.
bye
vamshi