Click here to Skip to main content
16,012,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK2001, errno and messing with libraries Pin
Janine18-Jul-02 1:19
Janine18-Jul-02 1:19 
QuestionHow to locate crash using mapfiles generated by MsDev Pin
Arvind Kumar15-Jul-02 20:55
Arvind Kumar15-Jul-02 20:55 
AnswerRe: How to locate crash using mapfiles generated by MsDev Pin
567890123415-Jul-02 22:45
567890123415-Jul-02 22:45 
GeneralDirectX editing service problem, help me! Pin
RichardWdy15-Jul-02 20:34
RichardWdy15-Jul-02 20:34 
GeneralHelp Pin
SamirSood15-Jul-02 18:59
SamirSood15-Jul-02 18:59 
GeneralSend Bitmap from ISAPI extension Pin
Don Miguel15-Jul-02 18:58
Don Miguel15-Jul-02 18:58 
GeneralAdd handler for a toolbar button Pin
Anonymous15-Jul-02 18:57
Anonymous15-Jul-02 18:57 
GeneralRe: Add handler for a toolbar button Pin
Fredrik Skog15-Jul-02 20:43
Fredrik Skog15-Jul-02 20:43 
If you use the default toolbar:
In your resource view you have a resource called "Toolbar". If you have a look at that, you will see a number of predefined buttons. You can add your own as well. When you have added a button, select it and press Alt+ Enter to get its properties. There you have to fill in an ID for the button.
Use this ID to add a command handler to MainFrame.cpp. Note that the ID is also seen in the String Table resource.
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
	//{{AFX_MSG_MAP(CMainFrame)
	ON_COMMAND(ID_YOUR_BUTTON, OnYourButton)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


If you have added an extra toolbar, e.g. a CDialogBar, then it is a good idea to write a class encapsulating it.

Cheers,
Fredrik

<right>Sonork ID: 100.11430:PhatBoy

"Felix qui potuit rerum cognoscere causas."
GeneralBitmap Pin
suresh_sathya15-Jul-02 18:40
suresh_sathya15-Jul-02 18:40 
GeneralRe: Bitmap Pin
Christian Graus15-Jul-02 19:03
protectorChristian Graus15-Jul-02 19:03 
GeneralRe: Bitmap Pin
suresh_sathya15-Jul-02 23:52
suresh_sathya15-Jul-02 23:52 
Generalsimple C thread functionality question. Pin
nosherwan15-Jul-02 15:01
nosherwan15-Jul-02 15:01 
GeneralRe: simple C thread functionality question. Pin
Nish Nishant15-Jul-02 15:55
sitebuilderNish Nishant15-Jul-02 15:55 
GeneralCImageList Pin
Steve L.15-Jul-02 12:49
Steve L.15-Jul-02 12:49 
GeneralRe: CImageList Pin
Shog916-Jul-02 7:22
sitebuilderShog916-Jul-02 7:22 
Generalinitialising elements using new foo[] Pin
moredip15-Jul-02 12:39
moredip15-Jul-02 12:39 
GeneralRe: initialising elements using new foo[] Pin
Christian Graus15-Jul-02 12:51
protectorChristian Graus15-Jul-02 12:51 
GeneralRe: initialising elements using new foo[] Pin
Chris Losinger15-Jul-02 13:48
professionalChris Losinger15-Jul-02 13:48 
GeneralRe: initialising elements using new foo[] Pin
Bernhard15-Jul-02 23:55
Bernhard15-Jul-02 23:55 
GeneralRe: initialising elements using new foo[] Pin
moredip16-Jul-02 7:28
moredip16-Jul-02 7:28 
GeneralWhy... Pin
Frank Deo15-Jul-02 12:28
Frank Deo15-Jul-02 12:28 
GeneralRe: Why... Pin
Christian Graus15-Jul-02 12:31
protectorChristian Graus15-Jul-02 12:31 
GeneralRe: Why... Pin
Frank Deo15-Jul-02 12:35
Frank Deo15-Jul-02 12:35 
GeneralRe: Why... Pin
Christian Graus15-Jul-02 12:53
protectorChristian Graus15-Jul-02 12:53 
GeneralRe: Why... Pin
Frank Deo15-Jul-02 13:00
Frank Deo15-Jul-02 13:00 

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.