Click here to Skip to main content
15,909,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get dynamic web content Pin
Mathefreak15-May-07 3:56
Mathefreak15-May-07 3:56 
GeneralRe: Get dynamic web content Pin
Ravi Bhavnani15-May-07 5:50
professionalRavi Bhavnani15-May-07 5:50 
GeneralRe: Get dynamic web content Pin
Mathefreak20-May-07 9:21
Mathefreak20-May-07 9:21 
Questionhow to import jpeg images into workspace Pin
kiranin15-May-07 2:28
kiranin15-May-07 2:28 
AnswerRe: how to import jpeg images into workspace Pin
Hamid_RT15-May-07 2:45
Hamid_RT15-May-07 2:45 
QuestionHow to call MSExcel from MFC? Pin
HiFive15-May-07 2:02
HiFive15-May-07 2:02 
AnswerRe: How to call MSExcel from MFC? Pin
David Crow15-May-07 3:19
David Crow15-May-07 3:19 
QuestionTracking when Windows are maximized and restored. Pin
Eoinoc15-May-07 1:55
Eoinoc15-May-07 1:55 
Hi, I'm rewriting a small utility myself in plain API code and the utility needs to know when there are any maximized Windows.

The original utility, an AutoHotKey script, simply polled all top-level windows about once every second, I'm convinced there must be a more efficient solution.

System hooks seemed like the obvious method to use but in the end the only hooks which would reliably detect a window being maximized from any previous state was a WH_CALLWNDPROC or WH_CALLWNDPROCRET hook. Currently I use a CALLWNDPROCRET hook to detect a window being maximized and then poll that window with an IsZoomed() call until it is 'un-maximized'. This feels quite far from the elegant solution I was sure I could come up with Smile | :) An alternative to the IsZoomed() poll would be to have the hook check on subsequent WM_SIZE messages to catch when the window is un-maximized but I'm not sure if that is actually better or worse.

Would anyone have some thoughts on the efficiency of these methods or even some other techniques altogether?

Kind regards, Eóin.
QuestionImage Capturing from clipboard and store into file Pin
Sethuraman.K15-May-07 1:26
Sethuraman.K15-May-07 1:26 
AnswerRe: Image Capturing from clipboard and store into file Pin
Mark Salsbery15-May-07 4:57
Mark Salsbery15-May-07 4:57 
QuestionHow To Pass Value From One Dialog To Another [modified] Pin
jannathali15-May-07 1:23
jannathali15-May-07 1:23 
AnswerRe: How To Pass Value From One Dialog To Another Pin
Hamid_RT15-May-07 1:26
Hamid_RT15-May-07 1:26 
AnswerRe: How To Pass Value From One Dialog To Another [modified] Pin
Sherin Iranimose15-May-07 1:49
Sherin Iranimose15-May-07 1:49 
GeneralRe: How To Pass Value From One Dialog To Another Pin
vivekphlp15-May-07 23:06
vivekphlp15-May-07 23:06 
AnswerRe: How To Pass Value From One Dialog To Another Pin
Arman S.15-May-07 1:58
Arman S.15-May-07 1:58 
AnswerRe: How To Pass Value From One Dialog To Another Pin
JimmyRopes15-May-07 3:59
professionalJimmyRopes15-May-07 3:59 
Questionfunction pointers Pin
Sonia Gupta15-May-07 1:17
Sonia Gupta15-May-07 1:17 
AnswerRe: function pointers Pin
Hamid_RT15-May-07 1:25
Hamid_RT15-May-07 1:25 
AnswerRe: function pointers Pin
CPallini15-May-07 1:37
mveCPallini15-May-07 1:37 
QuestionException code: c0000090 (FLT_INVALID_OPERATION) - I am in despair! Pin
Best Kiluyar15-May-07 0:25
Best Kiluyar15-May-07 0:25 
AnswerRe: Exception code: c0000090 (FLT_INVALID_OPERATION) - I am in despair! Pin
Arman S.15-May-07 2:09
Arman S.15-May-07 2:09 
QuestionAny File Encryption Pin
Genius Am Not15-May-07 0:21
Genius Am Not15-May-07 0:21 
AnswerRe: Any File Encryption Pin
Arman S.15-May-07 0:25
Arman S.15-May-07 0:25 
GeneralRe: Any File Encryption Pin
Genius Am Not15-May-07 0:35
Genius Am Not15-May-07 0:35 
GeneralRe: Any File Encryption Pin
Arman S.15-May-07 1:09
Arman S.15-May-07 1:09 

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.