Click here to Skip to main content
14,981,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I know the size of the char for ReadFile before reading the actual file. [modified] Pin
luisgrimaldo27-Aug-08 11:17
Memberluisgrimaldo27-Aug-08 11:17 
AnswerRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
led mike27-Aug-08 11:47
Memberled mike27-Aug-08 11:47 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
luisgrimaldo27-Aug-08 12:04
Memberluisgrimaldo27-Aug-08 12:04 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
David Crow28-Aug-08 4:06
MemberDavid Crow28-Aug-08 4:06 
QuestionNeural Network Function Estimation Pin
Ehsan Baghaki27-Aug-08 10:07
MemberEhsan Baghaki27-Aug-08 10:07 
QuestionSetting menu item disabled state problem Pin
nick0122327-Aug-08 8:12
Membernick0122327-Aug-08 8:12 
QuestionRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 8:54
MemberMark Salsbery27-Aug-08 8:54 
AnswerRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 9:06
Membernick0122327-Aug-08 9:06 
Yes, didn't work either.

But, literally this minute I've fixed it.

Was using WM_MENUSELECT instead of WM_INITMENUPOPUP as the trigger for the updating. Must occur at a different time, and greying must be different to check marks, because what was happening was the greying didn't work, but if while the menu was down you quickly moved the mouse off the menu (ie off the menu window) - it rapidly updated to the greyed state. Use WM_INITMENUPOPUP and it works all the time.

Must be to do with idle time processing.

Thanks for your help.
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:13
MemberMark Salsbery27-Aug-08 9:13 
GeneralRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 9:40
Membernick0122327-Aug-08 9:40 
AnswerRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 9:09
Memberled mike27-Aug-08 9:09 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:11
MemberMark Salsbery27-Aug-08 9:11 
GeneralRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 9:31
Memberled mike27-Aug-08 9:31 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:37
MemberMark Salsbery27-Aug-08 9:37 
QuestionCAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 8:00
MemberVaclav_27-Aug-08 8:00 
AnswerRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 8:05
MemberMark Salsbery27-Aug-08 8:05 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 8:22
MemberVaclav_27-Aug-08 8:22 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 8:49
MemberMark Salsbery27-Aug-08 8:49 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_28-Aug-08 11:45
MemberVaclav_28-Aug-08 11:45 
QuestionRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery29-Aug-08 5:24
MemberMark Salsbery29-Aug-08 5:24 
Questioncopy/past column from excel file to an other one Pin
zdoucha27-Aug-08 7:43
Memberzdoucha27-Aug-08 7:43 
AnswerRe: copy/past column from excel file to an other one Pin
David Crow27-Aug-08 8:14
MemberDavid Crow27-Aug-08 8:14 
QuestionPreprocessor confusion Pin
s196675m27-Aug-08 6:42
Members196675m27-Aug-08 6:42 
AnswerRe: Preprocessor confusion Pin
Mark Salsbery27-Aug-08 7:08
MemberMark Salsbery27-Aug-08 7:08 
AnswerRe: Preprocessor confusion Pin
Cedric Moonen27-Aug-08 7:40
MemberCedric Moonen27-Aug-08 7:40 

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.