CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Child Window topmost

    Hi, I'm trying to get a child window to be topmost, really is a modeless dialog box, above other normal child windows. When I create the dialog box, I call SetWindowPos:

    SetWindowPos(hToolsDlg, HWND_TOPMOST, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);

    but when another child window moves or get active, it get above dialog box. I don't know why happens that.
    The style of de dialog box is:

    WS_SYSMENU | WS_VISIBLE | WS_CHILD | WS_EX_PALETTEWINDOW | WS_CLIPSIBLINGS

    and the style of the normal child window is:

    WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW

    Thanks.
    Last edited by The_Judgement; April 3rd, 2009 at 08:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured