Click here to Skip to main content
15,566,615 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionextern usage problem Pin
linux_xjtu25-Apr-09 0:27
linux_xjtu25-Apr-09 0:27 
AnswerRe: extern usage problem Pin
Stuart Dootson25-Apr-09 1:19
professionalStuart Dootson25-Apr-09 1:19 
AnswerRe: extern usage problem Pin
linux_xjtu25-Apr-09 1:23
linux_xjtu25-Apr-09 1:23 
QuestionHow to determine if the current window is the desktop ? Pin
Yovav25-Apr-09 0:10
Yovav25-Apr-09 0:10 
AnswerRe: How to determine if the current window is the desktop ? Pin
Hamid_RT25-Apr-09 0:26
Hamid_RT25-Apr-09 0:26 
GeneralRe: How to determine if the current window is the desktop ? Pin
Yovav25-Apr-09 1:23
Yovav25-Apr-09 1:23 
QuestionHow to set focus on the next window after minimizing ? Pin
Yovav24-Apr-09 23:32
Yovav24-Apr-09 23:32 
AnswerRe: How to set focus on the next window after minimizing ? [modified] Pin
Yovav24-Apr-09 23:55
Yovav24-Apr-09 23:55 
OK, I partially managed to do it with the following code:

GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED);

CWnd* pCurrentWindow;
POINT pt;

GetCursorPos(&pt);
pCurrentWindow = WindowFromPoint(pt);
pCurrentWindow->SetForegroundWindow();


The problem is that it will only get the focus of windows behind the cursor (mouse)

Any idea how to get the next window regardless to the cursor location ?

Best Regards - Yovav Gad
CEO and founder of MicroMighty, Inc.

modified on Saturday, April 25, 2009 6:11 AM

QuestionMicrosoft Soap tool Kit compatible with all the versions of mssoap.dll Pin
Member 401661624-Apr-09 23:13
Member 401661624-Apr-09 23:13 
QuestionService not started. Pin
Le@rner24-Apr-09 22:39
Le@rner24-Apr-09 22:39 
AnswerRe: Service not started. Pin
Hamid_RT24-Apr-09 23:52
Hamid_RT24-Apr-09 23:52 
GeneralRe: Service not started. Pin
Le@rner25-Apr-09 0:05
Le@rner25-Apr-09 0:05 
GeneralRe: Service not started. Pin
Hamid_RT25-Apr-09 0:27
Hamid_RT25-Apr-09 0:27 
GeneralRe: Service not started. Pin
Le@rner25-Apr-09 0:54
Le@rner25-Apr-09 0:54 
GeneralRe: Service not started. Pin
Hamid_RT25-Apr-09 1:33
Hamid_RT25-Apr-09 1:33 
QuestionHow to send an Email Pin
AnithaSubramani24-Apr-09 22:02
AnithaSubramani24-Apr-09 22:02 
AnswerRe: How to send an Email Pin
CPallini24-Apr-09 23:02
mveCPallini24-Apr-09 23:02 
AnswerRe: How to send an Email Pin
Hamid_RT24-Apr-09 23:48
Hamid_RT24-Apr-09 23:48 
QuestionPdf Creation Pin
AnithaSubramani24-Apr-09 21:56
AnithaSubramani24-Apr-09 21:56 
QuestionRe: Pdf Creation Pin
CPallini24-Apr-09 23:01
mveCPallini24-Apr-09 23:01 
AnswerRe: Pdf Creation Pin
Code-o-mat24-Apr-09 23:13
Code-o-mat24-Apr-09 23:13 
AnswerRe: Pdf Creation Pin
Hamid_RT24-Apr-09 23:57
Hamid_RT24-Apr-09 23:57 
AnswerRe: Pdf Creation Pin
bob1697225-Apr-09 5:44
bob1697225-Apr-09 5:44 
QuestionProcess is not getting attached Pin
pandit8424-Apr-09 21:09
pandit8424-Apr-09 21:09 
AnswerRe: Process is not getting attached Pin
Baltoro25-Apr-09 9:27
Baltoro25-Apr-09 9:27 

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.