Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVRML in OpenGL and MFC Pin
Pompeyo24-Feb-09 3:48
Pompeyo24-Feb-09 3:48 
AnswerRe: VRML in OpenGL and MFC Pin
Stuart Dootson24-Feb-09 3:58
professionalStuart Dootson24-Feb-09 3:58 
GeneralRe: VRML in OpenGL and MFC Pin
Pompeyo24-Feb-09 4:06
Pompeyo24-Feb-09 4:06 
GeneralRe: VRML in OpenGL and MFC Pin
Stuart Dootson24-Feb-09 4:14
professionalStuart Dootson24-Feb-09 4:14 
GeneralRe: VRML in OpenGL and MFC Pin
Pompeyo24-Feb-09 4:24
Pompeyo24-Feb-09 4:24 
GeneralRe: VRML in OpenGL and MFC Pin
Stuart Dootson24-Feb-09 5:23
professionalStuart Dootson24-Feb-09 5:23 
GeneralRe: VRML in OpenGL and MFC Pin
Pompeyo24-Feb-09 23:02
Pompeyo24-Feb-09 23:02 
QuestionGet HWND of desired window Pin
komofilms7724-Feb-09 2:42
komofilms7724-Feb-09 2:42 
Hello All,

Im searching for a few hours how can i get HWND os desired window(ex. EXCEL)
I want to start appliction from my c++ program.
For starting it i use:

CreateProcess( NULL , pszLogfile , NULL , NULL , FALSE , CREATE_NEW_PROCESS_GROUP|NORMAL_PRIORITY_CLASS ,NULL,NULL, &si , &pi ) ;

But I must check if is already started and if it is yust bring it to foreground :

ShowWindow(MyhWnd,SW_SHOWNORMAL);
SetForegroundWindow(MyhWnd);

I need HWND to do this I can get HANDLE but i can not used it instead HWND???
I tryed with FindWindow but id dose not find all HWND's.

Is there any way to get HWND from exe, (ex. for excel from excel.exe,vncviewer.exe...)
Frown | :(

I ll be happy for any help and Im thanking You in advace.
AnswerRe: Get HWND of desired window Pin
Hamid_RT24-Feb-09 2:46
Hamid_RT24-Feb-09 2:46 
GeneralRe: Get HWND of desired window Pin
komofilms7724-Feb-09 2:53
komofilms7724-Feb-09 2:53 
GeneralRe: Get HWND of desired window Pin
«_Superman_»24-Feb-09 3:10
professional«_Superman_»24-Feb-09 3:10 
AnswerRe: Get HWND of desired window Pin
David Crow24-Feb-09 3:09
David Crow24-Feb-09 3:09 
Questioncommand line from exe Pin
trioum24-Feb-09 2:39
trioum24-Feb-09 2:39 
AnswerRe: command line from exe Pin
David Crow24-Feb-09 2:41
David Crow24-Feb-09 2:41 
AnswerRe: command line from exe Pin
Hamid_RT24-Feb-09 2:44
Hamid_RT24-Feb-09 2:44 
QuestionGenerate the list of installed application list from a remote system. Pin
geogen george24-Feb-09 1:36
geogen george24-Feb-09 1:36 
AnswerRe: Generate the list of installed application list from a remote system. Pin
Hamid_RT24-Feb-09 2:41
Hamid_RT24-Feb-09 2:41 
AnswerRe: Generate the list of installed application list from a remote system. Pin
David Crow24-Feb-09 3:01
David Crow24-Feb-09 3:01 
QuestionProject using SAPI Pin
Sumanta Banerjee24-Feb-09 1:00
Sumanta Banerjee24-Feb-09 1:00 
AnswerRe: Project using SAPI Pin
Maximilien24-Feb-09 2:25
Maximilien24-Feb-09 2:25 
AnswerRe: Project using SAPI Pin
Chandrasekharan P24-Feb-09 2:28
Chandrasekharan P24-Feb-09 2:28 
AnswerRe: Project using SAPI Pin
Hamid_RT24-Feb-09 2:48
Hamid_RT24-Feb-09 2:48 
JokeRe: Project using SAPI Pin
Rajesh R Subramanian24-Feb-09 5:08
professionalRajesh R Subramanian24-Feb-09 5:08 
GeneralRe: Project using SAPI Pin
CPallini24-Feb-09 5:48
mveCPallini24-Feb-09 5:48 
GeneralRe: Project using SAPI Pin
Rajesh R Subramanian25-Feb-09 1:24
professionalRajesh R Subramanian25-Feb-09 1:24 

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.