IsDialogMessage - Cursor not blinking

Hello everyone

I have created a simple WIN32 application. I inserted the function "IsDialogMessage" in the while-loop to make the tabstop key change the textfield. But when I insert the IsDialogMessage-function, the cursor won't blink anymore (it stays static). Is there a way to combine the two (tabstop key = change text field AND blinking cursor)?

Here's my while-loop:
1
2
3
4
5
6
7
8
9
MSG Msg;
    while(GetMessage(&Msg, NULL, 0, 0) > 0)
    {

        IsDialogMessage(window,&Msg);
        TranslateMessage(&Msg);
        DispatchMessage(&Msg);

    }


And here I am creating the textfields:
1
2
3
4
5
hwnd = CreateWindowExA(NULL, "EDIT", NULL,           //no title
                      WS_CHILD|WS_VISIBLE|WS_BORDER|ES_AUTOHSCROLL|WS_TABSTOP ,
                      xPos,yPos,width,height,
                      cWindow->window,(HMENU)502,
                      (HINSTANCE) GetWindowLong(cWindow->window, GWL_HINSTANCE),NULL);


Best regards
theRunner
I just got the solution:

1
2
3
4
5
6
7
8
9
10
11
while(GetMessage(&Msg, NULL, 0, 0) > 0)
    {

        if (!IsDialogMessage(window, &Msg))
         {
        TranslateMessage(&Msg);
            DispatchMessage(&Msg);

         }

    }
Last edited on
Topic archived. No new replies allowed.