Thread: making a absolute overlapped window, even overlap games

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    114

    making a absolute overlapped window, even overlap games

    Code:
    	hwnd = CreateWindowEx(
    		 WS_EX_TOPMOST ,
    		"myWindowClass",
    		"The title of my window",
    		WS_OVERLAPPEDWINDOW,
    		CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
    		NULL , NULL, hInstance, NULL);
    	
    	
    	
    	
    	
    	SetWindowPos(hwnd,HWND_TOPMOST,0,0,0,0,SWP_NOOWNERZORDER);

    how do i make an absolute overlapping window that overlaps everything, even games like "call of duty" that insist on overlapping all other windows? i need to create a overlapped desktop timer for the cybercafe where games can see the time remaining before they have to pay up. the above code overlaps most window but not the games ones

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You won't be able to do that for a Direct-X game - as you already know.
    Direct-X games have direct access to the video ram and can change screen resolutions, etc...

    I would ask the folks over in the Game programming forum or search the web for similiar apps that game players have developed.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. Window scrollbar
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 10-07-2005, 12:31 PM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. Winamp Vis if anyone can help
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-27-2002, 12:43 AM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM