Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting values from CDateTimeCtrl Pin
David Crow12-Jun-06 3:24
David Crow12-Jun-06 3:24 
GeneralRe: Getting values from CDateTimeCtrl Pin
ensger12-Jun-06 4:17
ensger12-Jun-06 4:17 
QuestionAtl Object Pin
hmklakmal11-Jun-06 7:31
hmklakmal11-Jun-06 7:31 
AnswerRe: Atl Object Pin
bob1697211-Jun-06 8:37
bob1697211-Jun-06 8:37 
GeneralRe: Atl Object Pin
hmklakmal11-Jun-06 10:04
hmklakmal11-Jun-06 10:04 
GeneralRe: Atl Object Pin
bob1697211-Jun-06 11:34
bob1697211-Jun-06 11:34 
QuestionVisual C++ Task list Pin
Giles11-Jun-06 7:25
Giles11-Jun-06 7:25 
QuestionMenu Bitmaps from Minimal Source Code in Dialog Pin
Igor Mihailov11-Jun-06 7:25
Igor Mihailov11-Jun-06 7:25 
Hello, could you please help me?

Here's an article:
http://www.codeproject.com/menu/bmpmenu.asp

The last comment is about using bitmap menu in dialog:

"I will use the MSDN example project dlgcbr32 to demonstrate this. Dlgcbr32 demonstrates how to add control bars to a dialog based application. Build dlgcbr32 and then follow these steps (the first 5 steps are essentially the same steps given in the original article):

1. Add these files to your project:
BitmapMenu.cpp, BitmapMenu.h, and winuser2.h

2. In Mdlsmain.h add this line:
#include "BitmapMenu.h"

3. In Mdlsmain.h inherit your modeless dialog from BitmapMenu:
class CModelessMain : public BitmapMenu<cmodelessdialog>

4. In Mdlsmain.cpp add two message handlers (the third message handler ON_WM_INITMENUPOPUP() is already there):
ON_WM_MEASUREITEM()
ON_WM_DRAWITEM()

5. In Mdlsmain.cpp at the end of the CModelessMain::OnInitDialog() function add the tool bar:
AddToolBar(&m_toolBar);

6. At the beginning of BitmapMenu.cpp add this line:
#include "Modeless.h"

7. At the end of BitmapMenu.cpp add this line:
template BitmapMenu<cmodelessdialog>;

8. In Mdlsmain.cpp at the beginning of the function CModelessMain::OnInitMenuPopup() add this line:
BitmapMenu<cmodelessdialog>::OnInitMenuPopup(pPopupMenu, nIndex, bSysMenu);

9. At the top of BitmapMenu.h add this line:
#include <afxcmn.h>"

The only thing that can't be compiled after perfoming all steps to use bitmap menu in dialog is this line:

CColorLBTestDlg::CColorLBTestDlg(CWnd* pParent /*=NULL*/):CDialog(CColorLBTestDlg::IDD, pParent)

The error i get:

error C2614: 'CColorLBTestDlg' : illegal member initialization: 'CDialog' is not a base or member

Thanks in advance!
AnswerRe: Menu Bitmaps from Minimal Source Code in Dialog Pin
Gary R. Wheeler11-Jun-06 8:21
Gary R. Wheeler11-Jun-06 8:21 
GeneralRe: Menu Bitmaps from Minimal Source Code in Dialog Pin
Igor Mihailov11-Jun-06 9:30
Igor Mihailov11-Jun-06 9:30 
GeneralRe: Menu Bitmaps from Minimal Source Code in Dialog Pin
Gary R. Wheeler11-Jun-06 10:44
Gary R. Wheeler11-Jun-06 10:44 
GeneralRe: Menu Bitmaps from Minimal Source Code in Dialog Pin
Igor Mihailov11-Jun-06 20:14
Igor Mihailov11-Jun-06 20:14 
QuestionHow to detect if XML resource is UTF8 or UTF16 Pin
Andre xxxxxxx11-Jun-06 7:01
Andre xxxxxxx11-Jun-06 7:01 
AnswerRe: How to detect if XML resource is UTF8 or UTF16 Pin
bob1697211-Jun-06 8:31
bob1697211-Jun-06 8:31 
AnswerRe: How to detect if XML resource is UTF8 or UTF16 Pin
Michael Dunn11-Jun-06 9:54
sitebuilderMichael Dunn11-Jun-06 9:54 
GeneralRe: How to detect if XML resource is UTF8 or UTF16 Pin
Andre xxxxxxx11-Jun-06 10:20
Andre xxxxxxx11-Jun-06 10:20 
QuestionChange User-Agent String with BHO Pin
nmx_de11-Jun-06 5:27
nmx_de11-Jun-06 5:27 
Questionsorting Pin
RockyJames11-Jun-06 4:02
RockyJames11-Jun-06 4:02 
AnswerRe: sorting [modified] Pin
Stephen Hewitt11-Jun-06 4:42
Stephen Hewitt11-Jun-06 4:42 
GeneralRe: sorting Pin
Roland Pibinger11-Jun-06 8:25
Roland Pibinger11-Jun-06 8:25 
GeneralRe: sorting Pin
Stephen Hewitt12-Jun-06 2:01
Stephen Hewitt12-Jun-06 2:01 
QuestionFrustrated [modified] Pin
antonaras11-Jun-06 0:12
antonaras11-Jun-06 0:12 
AnswerRe: Frustrated Pin
YaronNir11-Jun-06 1:34
YaronNir11-Jun-06 1:34 
GeneralRe: Frustrated Pin
antonaras11-Jun-06 21:26
antonaras11-Jun-06 21:26 
AnswerRe: Frustrated Pin
Saurabh.Garg11-Jun-06 2:26
Saurabh.Garg11-Jun-06 2:26 

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.