| | |
How to make a window an active window(focussed window)
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 164
Reputation:
Solved Threads: 5
Your pm box is full ravin.
You may have an outdated sdk which is why this might not work for you. Try downloading latest platform sdk.
SPI_GETFOREGROUNDLOCKTIMEOUT is #defined as 0x2000
SPI_SETFOREGROUNDLOCKTIMEOUT is #defined as 0x2001
So you could try this...
You may have an outdated sdk which is why this might not work for you. Try downloading latest platform sdk.
SPI_GETFOREGROUNDLOCKTIMEOUT is #defined as 0x2000
SPI_SETFOREGROUNDLOCKTIMEOUT is #defined as 0x2001
So you could try this...
C++ Syntax (Toggle Plain Text)
DWORD timeout; SystemParametersInfo(0x2000,0,&timeout,0); SystemParametersInfo(0x2001,0,0,SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE); SetForegroundWindow(hwnd); SystemParametersInfo(0x2001,0,&timeout,SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE);
![]() |
Similar Threads
- Window Xp IE 6 (DNS ERROR) page not found! (Viruses, Spyware and other Nasties)
- openGL window forms in c# (C#)
- making window visible after combo keys (?) (C#)
- opening pictures in a new window (JavaScript / DHTML / AJAX)
- Sending keys to active window. (C++)
- Draw a house into a window in C++ (?!) (C++)
- creating a window based dialog (C++)
- creating a pop up window (HTML and CSS)
Other Threads in the C++ Forum
- Previous Thread: please provide a separate forum for C
- Next Thread: binary tree class
| Thread Tools | Search this Thread |
api array beginner bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





