Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Namespace and Temmplate function Pin
Brigsoft12-May-03 21:23
Brigsoft12-May-03 21:23 
QuestionHELP! Anyone know MFC here? Pin
Bigsteiny12-May-03 5:55
Bigsteiny12-May-03 5:55 
AnswerRe: HELP! Anyone know MFC here? Pin
Nitron12-May-03 6:03
Nitron12-May-03 6:03 
GeneralRe: HELP! Anyone know MFC here? Pin
Bigsteiny12-May-03 6:09
Bigsteiny12-May-03 6:09 
GeneralRe: HELP! Anyone know MFC here? Pin
David Crow12-May-03 6:54
David Crow12-May-03 6:54 
GeneralRe: HELP! Anyone know MFC here? Pin
Bigsteiny12-May-03 16:20
Bigsteiny12-May-03 16:20 
GeneralRe: HELP! Anyone know MFC here? Pin
David Crow13-May-03 2:12
David Crow13-May-03 2:12 
AnswerRe: HELP! Anyone know MFC here? Pin
Toni7812-May-03 7:21
Toni7812-May-03 7:21 
The best way to do this is to create a class derived from CButton.
class CMyButton : public CButton
{
// class members go here
}; // end class

And then in your MFC application you declare a member variable:
CMyButton *pButton;

Then you procceed by creating the button and showing it.
To handle messages simply go to classwizard and select CMyButton. You will be able to see the list of messages that your class can handle.

// Afterall I realized that even my comment lines have bugs
GeneralRe: HELP! Anyone know MFC here? Pin
Bigsteiny12-May-03 16:18
Bigsteiny12-May-03 16:18 
AnswerRe: HELP! Anyone know MFC here? Pin
Roger Allen13-May-03 1:04
Roger Allen13-May-03 1:04 
Generalsigh. still not working. Pin
Bigsteiny13-May-03 16:48
Bigsteiny13-May-03 16:48 
GeneralRe: sigh. still not working. Pin
MAAK13-May-03 22:02
MAAK13-May-03 22:02 
GeneralRe: sigh. still not working. Pin
MAAK13-May-03 22:07
MAAK13-May-03 22:07 
GeneralGot it! Pin
Bigsteiny14-May-03 16:18
Bigsteiny14-May-03 16:18 
GeneralAdding to dialogue design palette Pin
Trollslayer12-May-03 5:31
mentorTrollslayer12-May-03 5:31 
GeneralRe: Adding to dialogue design palette Pin
G. Steudtel12-May-03 6:05
G. Steudtel12-May-03 6:05 
QuestionTLB's need to be registered ?? Pin
Braulio Dez12-May-03 5:28
Braulio Dez12-May-03 5:28 
AnswerRe: TLB's need to be registered ?? Pin
Anonymous13-May-03 16:13
Anonymous13-May-03 16:13 
GeneralWinINet Via Proxy Pin
thowra12-May-03 5:09
thowra12-May-03 5:09 
GeneralErrors Pin
flora_k12-May-03 4:50
flora_k12-May-03 4:50 
GeneralRe: Errors Pin
flora_k12-May-03 4:53
flora_k12-May-03 4:53 
GeneralRe: Errors Pin
G. Steudtel12-May-03 5:11
G. Steudtel12-May-03 5:11 
GeneralRe: Errors Pin
David Crow12-May-03 5:11
David Crow12-May-03 5:11 
GeneralRe: Errors Pin
Iain Clarke, Warrior Programmer12-May-03 5:13
Iain Clarke, Warrior Programmer12-May-03 5:13 
GeneralSpinControl Help Pin
VanHlebar12-May-03 4:45
VanHlebar12-May-03 4:45 

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.