Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:15
markhaslehurst10-Mar-06 0:15 
GeneralRe: Controlling powerpoint?! Pin
toxcct10-Mar-06 0:20
toxcct10-Mar-06 0:20 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:26
markhaslehurst10-Mar-06 0:26 
QuestionSir, I want to know the diffrence between Adding a Virtual Function And Message Handler pls help me. Pin
CodeVarma9-Mar-06 20:44
CodeVarma9-Mar-06 20:44 
AnswerRe: Sir, I want to know the diffrence between Adding a Virtual Function And Message Handler pls help me. Pin
toxcct9-Mar-06 21:13
toxcct9-Mar-06 21:13 
QuestionWindow Handle and Process Handle Pin
Subramaniam s.V.9-Mar-06 19:39
Subramaniam s.V.9-Mar-06 19:39 
AnswerRe: Window Handle and Process Handle Pin
Stephen Hewitt9-Mar-06 19:49
Stephen Hewitt9-Mar-06 19:49 
AnswerRe: Window Handle and Process Handle Pin
Monty29-Mar-06 19:49
Monty29-Mar-06 19:49 
HWND is a Handle to a Window

Where as process handle is a handle to a process (Note: a process may or maynot have a window)

So Both are different things, the correct question will be

how can i get the process id if i have the HWND of one of its windows

GetWindowThreadProcessId gives the process id

to get the opposite (processid to window handle) you have to enumerate all the windows and compare the process id.





C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
GeneralRe: Window Handle and Process Handle Pin
Subramaniam s.V.9-Mar-06 20:00
Subramaniam s.V.9-Mar-06 20:00 
GeneralRe: Window Handle and Process Handle Pin
Monty29-Mar-06 20:03
Monty29-Mar-06 20:03 
GeneralRe: Window Handle and Process Handle Pin
Stephen Hewitt9-Mar-06 20:28
Stephen Hewitt9-Mar-06 20:28 
QuestionInternet Explorer Pin
Subramaniam s.V.9-Mar-06 19:22
Subramaniam s.V.9-Mar-06 19:22 
AnswerRe: Internet Explorer Pin
Monty29-Mar-06 19:44
Monty29-Mar-06 19:44 
GeneralRe: Internet Explorer Pin
Subramaniam s.V.9-Mar-06 20:03
Subramaniam s.V.9-Mar-06 20:03 
GeneralRe: Internet Explorer Pin
Monty29-Mar-06 20:13
Monty29-Mar-06 20:13 
Question3 win32 applications running parallel Pin
BeakX9-Mar-06 18:36
BeakX9-Mar-06 18:36 
AnswerRe: 3 win32 applications running parallel Pin
Monty29-Mar-06 19:05
Monty29-Mar-06 19:05 
GeneralRe: 3 win32 applications running parallel Pin
BeakX9-Mar-06 19:43
BeakX9-Mar-06 19:43 
GeneralRe: 3 win32 applications running parallel Pin
Monty29-Mar-06 20:00
Monty29-Mar-06 20:00 
GeneralRe: 3 win32 applications running parallel Pin
Stephen Hewitt9-Mar-06 20:59
Stephen Hewitt9-Mar-06 20:59 
QuestionStoring Data Pin
Waldermort9-Mar-06 18:33
Waldermort9-Mar-06 18:33 
AnswerRe: Storing Data Pin
Monty29-Mar-06 18:59
Monty29-Mar-06 18:59 
AnswerRe: Storing Data Pin
kakan9-Mar-06 21:16
professionalkakan9-Mar-06 21:16 
AnswerRe: Storing Data Pin
toxcct9-Mar-06 22:02
toxcct9-Mar-06 22:02 
Questionhow can i set buttons on title bar Pin
baldha rakesh9-Mar-06 18:14
baldha rakesh9-Mar-06 18:14 

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.