Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAsynchronous I/O using ReadFile Pin
PradeepKK1-Feb-06 23:49
PradeepKK1-Feb-06 23:49 
AnswerRe: Asynchronous I/O using ReadFile Pin
Vanting2-Feb-06 0:45
Vanting2-Feb-06 0:45 
GeneralRe: Asynchronous I/O using ReadFile Pin
PradeepKK2-Feb-06 1:18
PradeepKK2-Feb-06 1:18 
GeneralRe: Asynchronous I/O using ReadFile Pin
Iain Clarke, Warrior Programmer2-Feb-06 5:16
Iain Clarke, Warrior Programmer2-Feb-06 5:16 
QuestionHow can I intercept the "Windows" menu Pin
Jim @ JCT1-Feb-06 23:17
Jim @ JCT1-Feb-06 23:17 
AnswerRe: How can I intercept the "Windows" menu Pin
Iain Clarke, Warrior Programmer2-Feb-06 6:17
Iain Clarke, Warrior Programmer2-Feb-06 6:17 
GeneralRe: How can I intercept the "Windows" menu Pin
Jim @ JCT2-Feb-06 22:21
Jim @ JCT2-Feb-06 22:21 
GeneralRe: How can I intercept the "Windows" menu Pin
Iain Clarke, Warrior Programmer3-Feb-06 0:33
Iain Clarke, Warrior Programmer3-Feb-06 0:33 
In that case, I'd look at the command value(s) that "window 1", "window 2", etc pass. These will go through the normal command routing mechanism.
I've just looked, and the first window command is
#define AFX_IDM_FIRST_MDICHILD 0xFF00 // window list starts here

You could use
ON_COMMAND_RANGE_EX (AFX_IDM_FIRST_MDICHILD, AFX_IDM_FIRST_MDICHILD + 8, MyWindowHandler)
...
BOOL CMyFrame::MyWindowHandler (UINT nCmd)
{
    ....

    return FALSE; // Carry on handling this nmessage - maybe true to use.
}


I can't remember the exact details of the handler definition, or whether the return should be true or false, but you can do the legwork - I'm too lazy.

Probably simpler than getting a menuselect handler wrong!

Iain.
GeneralRe: How can I intercept the "Windows" menu Pin
Jim @ JCT13-Feb-06 3:16
Jim @ JCT13-Feb-06 3:16 
Questionasking............ Pin
shazzney1-Feb-06 23:14
shazzney1-Feb-06 23:14 
AnswerRe: asking............ Pin
RChin1-Feb-06 23:20
RChin1-Feb-06 23:20 
QuestionHow to extract plain text from a url or a html document? Pin
shertay1-Feb-06 21:02
shertay1-Feb-06 21:02 
AnswerRe: How to extract plain text from a url or a html document? Pin
Stephen Hewitt1-Feb-06 21:28
Stephen Hewitt1-Feb-06 21:28 
GeneralRe: How to extract plain text from a url or a html document? Pin
shertay5-Feb-06 16:47
shertay5-Feb-06 16:47 
QuestionText extraction Pin
KongHL1-Feb-06 20:51
KongHL1-Feb-06 20:51 
AnswerRe: Text extraction Pin
hsdok1-Feb-06 21:32
hsdok1-Feb-06 21:32 
GeneralRe: Text extraction Pin
James Gupta1-Feb-06 21:37
professionalJames Gupta1-Feb-06 21:37 
GeneralRe: Text extraction Pin
toxcct1-Feb-06 22:06
toxcct1-Feb-06 22:06 
GeneralRe: Text extraction Pin
KongHL1-Feb-06 21:54
KongHL1-Feb-06 21:54 
GeneralRe: Text extraction Pin
Sebastian Schneider1-Feb-06 22:08
Sebastian Schneider1-Feb-06 22:08 
GeneralRe: Text extraction Pin
KongHL1-Feb-06 22:13
KongHL1-Feb-06 22:13 
GeneralRe: Text extraction Pin
Sebastian Schneider1-Feb-06 22:18
Sebastian Schneider1-Feb-06 22:18 
AnswerRe: Text extraction Pin
grigsoft1-Feb-06 22:39
grigsoft1-Feb-06 22:39 
AnswerRe: Text extraction Pin
Maximilien2-Feb-06 3:10
Maximilien2-Feb-06 3:10 
AnswerRe: Text extraction Pin
David Crow2-Feb-06 5:03
David Crow2-Feb-06 5:03 

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.