Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a HDROP object Pin
Blake Miller21-Jan-05 8:45
Blake Miller21-Jan-05 8:45 
GeneralRe: Creating a HDROP object Pin
peluquero8023-Jan-05 23:23
peluquero8023-Jan-05 23:23 
GeneralRe: Creating a HDROP object Pin
Blake Miller25-Jan-05 4:47
Blake Miller25-Jan-05 4:47 
QuestionHot to get the handle of the main window? Pin
Vaibhav Sanghavi20-Jan-05 23:54
Vaibhav Sanghavi20-Jan-05 23:54 
AnswerRe: Hot to get the handle of the main window? Pin
vikramlinux21-Jan-05 0:56
vikramlinux21-Jan-05 0:56 
AnswerRe: Hot to get the handle of the main window? Pin
Abhi Lahare21-Jan-05 0:59
Abhi Lahare21-Jan-05 0:59 
AnswerRe: Hot to get the handle of the main window? Pin
Blake Miller21-Jan-05 8:49
Blake Miller21-Jan-05 8:49 
GeneralRe: Hot to get the handle of the main window? Pin
Vaibhav Sanghavi23-Jan-05 19:50
Vaibhav Sanghavi23-Jan-05 19:50 
Thanks Miller! I could not reply as it was weekend for me.

The solution given by you works fine and gives me the hadle.

One more thing. EnumThreadWindows() enumberates the all windows associated with a thread and returns their handles. I have noticed that the very first handle it returns is the handle of the main window. Which is exactly the same you get by your solution. So this is another approach.

I have one more query..

I am currently creating an application which requires to launch an application in backgroud and the user should not be able to see the application window. I am using CreateProcess API to launch the application in background and using the STARTUP_INFO structures's flag (STARTF_USESHOWWINDOW)to hide the newly launched application's window. But by doing this though the application is launched in background and is not visible to the end user the splash screen of the application is visible to the end user. I have tried manipulating few flags of STARTUP_INFO structure but it didnt helped.

I am looking for any alternative way by which i can accomplish the afore said task or any usefull information?

My coulleague has posted this question at following URL.

http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=1022368&tid=1022368#xx1022368xx

Please respond there.
Thanks for your reply.

--------------
Vaibhav...
GeneralFonts are scaled while scaling metafile Pin
marukas20-Jan-05 23:42
marukas20-Jan-05 23:42 
QuestionNeed help!!! How to create a connection in Network connections in WinXP? Pin
Chuaaico20-Jan-05 23:42
Chuaaico20-Jan-05 23:42 
GeneralHelp wanted with CRecordset Pin
xcavin20-Jan-05 21:15
xcavin20-Jan-05 21:15 
GeneralRe: Help wanted with CRecordset Pin
David Crow21-Jan-05 10:15
David Crow21-Jan-05 10:15 
GeneralGetKeyState Pin
vidhyas20-Jan-05 17:06
vidhyas20-Jan-05 17:06 
GeneralRe: GetKeyState Pin
Blake Miller21-Jan-05 8:53
Blake Miller21-Jan-05 8:53 
Generalabout WM_DEVCHANGE notification Pin
gly20-Jan-05 15:57
gly20-Jan-05 15:57 
GeneralWSAAsyncSelect CANNOT post socket event notifications, Plz help... Pin
enoloo_don20-Jan-05 14:48
enoloo_don20-Jan-05 14:48 
QuestionADO with RecordBinding Question ? Pin
Anonymous20-Jan-05 14:43
Anonymous20-Jan-05 14:43 
QuestionHow to detect the activity of specified devices? Pin
ErisonWu20-Jan-05 14:02
ErisonWu20-Jan-05 14:02 
GeneralThe hell of LBN_ERRSPACE Pin
Alfonso Vila20-Jan-05 13:52
Alfonso Vila20-Jan-05 13:52 
GeneralRe: The hell of LBN_ERRSPACE Pin
Shog920-Jan-05 14:34
sitebuilderShog920-Jan-05 14:34 
Generalsystem tray right-click menu Pin
Anonymous20-Jan-05 13:42
Anonymous20-Jan-05 13:42 
GeneralRe: system tray right-click menu Pin
nm_11420-Jan-05 18:01
nm_11420-Jan-05 18:01 
GeneralRe: system tray right-click menu Pin
lillah21-Jan-05 0:03
lillah21-Jan-05 0:03 
GeneralRe: system tray right-click menu Pin
Anonymous21-Jan-05 13:16
Anonymous21-Jan-05 13:16 
GeneralDevelop FTA Tool Help Pin
XiaoYu20-Jan-05 13:41
XiaoYu20-Jan-05 13:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.