Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help! how to display time on status bar? Pin
Ravi Bhavnani13-Feb-02 10:03
professionalRavi Bhavnani13-Feb-02 10:03 
GeneralRe: Help! how to display time on status bar? Pin
lucy13-Feb-02 11:26
lucy13-Feb-02 11:26 
GeneralVC++ CInternetSession::SetOption Pin
mine_4613-Feb-02 8:27
mine_4613-Feb-02 8:27 
GeneralJIT Debug under Win XP Pin
Victor Rubinstein13-Feb-02 8:22
Victor Rubinstein13-Feb-02 8:22 
GeneralNULL Pin
Peter Liddle13-Feb-02 7:17
Peter Liddle13-Feb-02 7:17 
GeneralRe: NULL Pin
Chris Losinger13-Feb-02 7:58
professionalChris Losinger13-Feb-02 7:58 
GeneralRe: NULL Pin
Michael Dunn13-Feb-02 8:46
sitebuilderMichael Dunn13-Feb-02 8:46 
GeneralChanging Bitmap of Menu Item Check Box Pin
Eldon Zacek13-Feb-02 7:04
Eldon Zacek13-Feb-02 7:04 
I having some interesting problems with the following code.
When the fill color is set to "White" the color displayed
is the background color of the menu. Other colors appear
to work fine. Even the outline of the rectangle appears OK.

Here is the code:

CClientDC dcScreen(this);

WORD bitmap_width = GetSystemMetrics(SM_CXMENUCHECK);
WORD bitmap_height = GetSystemMetrics(SM_CYMENUCHECK);
CRect rect(0, 0, bitmap_width, bitmap_height);

m_background_bitmap.CreateCompatibleBitmap(&dcScreen, bitmap_width, bitmap_height);

CDC dcMem;
dcMem.CreateCompatibleDC(&dcScreen);

CBrush brush(RGB(255, 255, 255));
CBrush black(RGB(0, 0, 0));

CBitmap* pOldBitmap = dcMem.SelectObject(&m_background_bitmap);
dcMem.FillRect(rect, &brush);
dcMem.FrameRect(rect, &black);
dcMem.SelectObject(pOldBitmap);

VERIFY(mmenu->SetMenuItemBitmaps(ID_SETTINGS_COLOR_BACKGROUND, MF_BYCOMMAND, &m_background_bitmap, NULL));


Any suggestions?

Thanks


Eldon Zacek
VP of Engineering
Czech-Mate Enterprises, LLC

GeneralRe: Changing Bitmap of Menu Item Check Box Pin
567890123413-Feb-02 22:02
567890123413-Feb-02 22:02 
GeneralSTL issue in VS 7.0 Pin
Stan Shannon13-Feb-02 7:01
Stan Shannon13-Feb-02 7:01 
GeneralRe: STL issue in VS 7.0 Pin
13-Feb-02 7:28
suss13-Feb-02 7:28 
GeneralRe: STL issue in VS 7.0 Pin
Joao Vaz13-Feb-02 7:45
Joao Vaz13-Feb-02 7:45 
GeneralRe: STL issue in VS 7.0 Pin
Joao Vaz13-Feb-02 7:48
Joao Vaz13-Feb-02 7:48 
GeneralRe: STL issue in VS 7.0 Pin
Michael Dunn13-Feb-02 8:47
sitebuilderMichael Dunn13-Feb-02 8:47 
Generalsscanf problem Pin
Rybeck13-Feb-02 6:21
Rybeck13-Feb-02 6:21 
GeneralRe: sscanf problem Pin
Michael Dunn13-Feb-02 8:50
sitebuilderMichael Dunn13-Feb-02 8:50 
GeneralMemset Pin
Peter Liddle13-Feb-02 6:14
Peter Liddle13-Feb-02 6:14 
GeneralRe: Memset Pin
Joaquín M López Muñoz13-Feb-02 6:22
Joaquín M López Muñoz13-Feb-02 6:22 
GeneralRe: Memset Pin
victoria13-Feb-02 6:58
victoria13-Feb-02 6:58 
GeneralRe: Memset Pin
Carlos Antollini13-Feb-02 7:15
Carlos Antollini13-Feb-02 7:15 
Generalcatch doubleclick from CEdit Pin
Rybeck13-Feb-02 6:13
Rybeck13-Feb-02 6:13 
GeneralRe: catch doubleclick from CEdit Pin
Joaquín M López Muñoz13-Feb-02 6:18
Joaquín M López Muñoz13-Feb-02 6:18 
GeneralRe: catch doubleclick from CEdit Pin
Mazdak13-Feb-02 6:25
Mazdak13-Feb-02 6:25 
Generalupgrade to VC 6.0 or .NET Pin
13-Feb-02 5:43
suss13-Feb-02 5:43 
GeneralRe: upgrade to VC 6.0 or .NET Pin
Mazdak13-Feb-02 5:52
Mazdak13-Feb-02 5:52 

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.