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

C / C++ / MFC

 
GeneralRe: CRichEdit and PreTranslateMessage Pin
Steve S27-Oct-03 1:35
Steve S27-Oct-03 1:35 
GeneralRe: CRichEdit and PreTranslateMessage Pin
Anonymous27-Oct-03 8:56
Anonymous27-Oct-03 8:56 
GeneralCBitmap from file Pin
ImrShah Shehpori26-Oct-03 20:19
sussImrShah Shehpori26-Oct-03 20:19 
GeneralRe: CBitmap from file Pin
Jarek G26-Oct-03 23:40
Jarek G26-Oct-03 23:40 
QuestionHow to access mysql database using C Pin
samhita26-Oct-03 19:57
samhita26-Oct-03 19:57 
AnswerRe: How to access mysql database using C Pin
Florin Ochiana27-Oct-03 0:34
Florin Ochiana27-Oct-03 0:34 
QuestionCan anybody see what I'm doing wrong? Pin
Oinka26-Oct-03 18:30
Oinka26-Oct-03 18:30 
AnswerRe: Can anybody see what I'm doing wrong? Pin
Roger Allen27-Oct-03 2:17
Roger Allen27-Oct-03 2:17 
Standrad MFC routing code will automatically disable menu/toolbar item if it command find a message handler in any of the following classes:

CYourApp
CMainFrame
CYourDoc
CYourView

As you chose "Create a new class..." when associating the message OnButton1() handler, you probably did not get it put in the message map for one of these classes. What you should have done is "Select an existing class", which is probably CMainFrame or CYourDoc depdning on what you want to do.

Typically if you need the handler to go in a specific class, I would start up class wizard and select the class you want the handler in. Then select the correct menu/toolbar button id and create a message map handler that way.

Roger Allen
Sonork 100.10016

Death come early, death come late,
It takes us all, there is no reason.
For every purpose under heaven,
To each a turn, to each a season.
A time to weep and a time to sigh,
A time to laugh and a time to cry,
A time to be born and a time to die.
Dust to dust and ashes to ashes,
And so I end my song.

GeneralThanks Roger! Pin
Oinka27-Oct-03 5:35
Oinka27-Oct-03 5:35 
GeneralDirectShow Problem: Error return 'E_INVALIDARG' when calling ICaptureGraphBuilder2::RenderStream Pin
Member 65339926-Oct-03 16:57
Member 65339926-Oct-03 16:57 
GeneralDesign question Pin
alex.barylski26-Oct-03 13:39
alex.barylski26-Oct-03 13:39 
GeneralRe: Design question Pin
Ravi Bhavnani26-Oct-03 13:57
professionalRavi Bhavnani26-Oct-03 13:57 
GeneralRe: Design question Pin
alex.barylski27-Oct-03 6:55
alex.barylski27-Oct-03 6:55 
GeneralCListCtrl DeleteItem Pin
Jarek G26-Oct-03 13:05
Jarek G26-Oct-03 13:05 
GeneralRe: CListCtrl DeleteItem Pin
Daniel132426-Oct-03 13:53
Daniel132426-Oct-03 13:53 
GeneralRe: CListCtrl DeleteItem Pin
Ravi Bhavnani26-Oct-03 13:54
professionalRavi Bhavnani26-Oct-03 13:54 
GeneralRe: CListCtrl DeleteItem Pin
Jarek G26-Oct-03 14:16
Jarek G26-Oct-03 14:16 
GeneralRe: CListCtrl DeleteItem Pin
Ravi Bhavnani26-Oct-03 14:39
professionalRavi Bhavnani26-Oct-03 14:39 
GeneralRe: CListCtrl DeleteItem Pin
Jarek G26-Oct-03 23:32
Jarek G26-Oct-03 23:32 
GeneralRe: CListCtrl DeleteItem Pin
Roger Allen27-Oct-03 2:21
Roger Allen27-Oct-03 2:21 
GeneralRe: CListCtrl DeleteItem Pin
David Crow27-Oct-03 4:46
David Crow27-Oct-03 4:46 
GeneralRe: CListCtrl DeleteItem Pin
Jarek G27-Oct-03 7:59
Jarek G27-Oct-03 7:59 
GeneralRe: CListCtrl DeleteItem Pin
Abin27-Oct-03 14:09
Abin27-Oct-03 14:09 
GeneralCPP question Pin
alex.barylski26-Oct-03 12:22
alex.barylski26-Oct-03 12:22 
GeneralRe: CPP question Pin
Steve S27-Oct-03 1:46
Steve S27-Oct-03 1:46 

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.