Set Top Window?

This is a discussion on Set Top Window? within the Windows Programming forums, part of the Platform Specific Boards category; I have a really cool program. It keeps watching for a certaing window to open and when it does it ...

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question Set Top Window?

    I have a really cool program. It keeps watching for a certaing window to open and when it does it disables it. It then shows my password dialog box. How do I bring it to the top automatically. To the top, the way I mean, is to bring on top of all other windows. How do I do this?

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    7
    You could try;
    ::SetWindowPos(m_hWnd,HWND_TOPMOST, 100,100,140,140, SWP_NOMOVE | SWP_NOSIZE);
    with your own values.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL rendering problem
    By JJFMJR in forum Game Programming
    Replies: 8
    Last Post: 08-31-2007, 07:26 PM
  2. Taskbars; 'Cannot create top level child window'
    By Gerread in forum Windows Programming
    Replies: 4
    Last Post: 05-18-2007, 06:41 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21