johny_1015_1981
October 21st, 2008, 08:32 AM
1-> i am trying to add a caret on child window(not on typical class)
but cann't create the reason is i cant get focus on child window even if i create without having focus it doesnt show up.
2-> i added a WM_CHAR message in child windows message handler function. the problem is when i press first character it change the mouse cursor with hourglass. if i move the mouse mouse cursor came back to normal. but message does not processed. in this situation if i press 'Alt' window message is processed.
LPRESULT __stdcall ChildWndProc(HWND,UINT msg,WPARAM,LPARAM)
{
switch(msg)
{
case WM_CHAR:
MessageBox(NULL,TEXT("Message"),TEXT("Caption"),MB_OK);
return 0;
}
return 0;
}
can any one tell me what is wrong with the program
but cann't create the reason is i cant get focus on child window even if i create without having focus it doesnt show up.
2-> i added a WM_CHAR message in child windows message handler function. the problem is when i press first character it change the mouse cursor with hourglass. if i move the mouse mouse cursor came back to normal. but message does not processed. in this situation if i press 'Alt' window message is processed.
LPRESULT __stdcall ChildWndProc(HWND,UINT msg,WPARAM,LPARAM)
{
switch(msg)
{
case WM_CHAR:
MessageBox(NULL,TEXT("Message"),TEXT("Caption"),MB_OK);
return 0;
}
return 0;
}
can any one tell me what is wrong with the program