Click here to Skip to main content
16,016,693 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CButton & Messages Pin
5-May-02 8:35
suss5-May-02 8:35 
GeneralRe: CButton & Messages Pin
Shog95-May-02 8:58
sitebuilderShog95-May-02 8:58 
GeneralRe: CButton & Messages Pin
5-May-02 9:52
suss5-May-02 9:52 
GeneralRe: CButton & Messages Pin
Michael Dunn5-May-02 7:57
sitebuilderMichael Dunn5-May-02 7:57 
GeneralReleaseDC is not working Pin
MaTrIX2k25-May-02 7:14
MaTrIX2k25-May-02 7:14 
GeneralRe: ReleaseDC is not working Pin
PJ Arends5-May-02 8:01
professionalPJ Arends5-May-02 8:01 
GeneralRe: ReleaseDC is not working Pin
MaTrIX2k25-May-02 9:59
MaTrIX2k25-May-02 9:59 
GeneralRe: ReleaseDC is not working Pin
Paul M Watt5-May-02 19:54
mentorPaul M Watt5-May-02 19:54 
So let me get this clear, you are painting the background and text in the menu, but ...

A) you never see the text appear on the menu

B) you see the text appear on the menu, but the next time it appears the text is gone

First, I would say that if you are painting the background in the OnPaint handler, then you need to handle the OnEraseBkgnd handler as well and simply return TRUE in your implmentation of this function.

second if your answer to the above statement is choice A, I would say make sure that you are drawing in the proper coordinates for you window. It is possible that you have miscalculated the region that you should be drawing and you are not drawing on a region where the menu window exists.

If your answer is B, then I will have to ask some more questions.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: ReleaseDC is not working Pin
Paul M Watt5-May-02 9:36
mentorPaul M Watt5-May-02 9:36 
GeneralRe: ReleaseDC is not working Pin
MaTrIX2k25-May-02 11:09
MaTrIX2k25-May-02 11:09 
GeneralRe: ReleaseDC is not working Pin
Paul M Watt5-May-02 19:56
mentorPaul M Watt5-May-02 19:56 
QuestionHow do you add items to a combobox? Pin
5-May-02 7:00
suss5-May-02 7:00 
AnswerRe: How do you add items to a combobox? Pin
Tom Archer5-May-02 7:32
Tom Archer5-May-02 7:32 
GeneralRe: How do you add items to a combobox? Pin
5-May-02 7:43
suss5-May-02 7:43 
GeneralRe: How do you add items to a combobox? Pin
Tom Archer5-May-02 8:00
Tom Archer5-May-02 8:00 
GeneralRe: How do you add items to a combobox? Pin
5-May-02 8:07
suss5-May-02 8:07 
GeneralRe: How do you add items to a combobox? Pin
Tom Archer5-May-02 8:15
Tom Archer5-May-02 8:15 
GeneralRe: How do you add items to a combobox? Pin
5-May-02 8:32
suss5-May-02 8:32 
GeneralStrange... Pin
5-May-02 8:38
suss5-May-02 8:38 
GeneralEven more strange... Pin
5-May-02 8:44
suss5-May-02 8:44 
GeneralAnd... Pin
5-May-02 8:50
suss5-May-02 8:50 
GeneralRe: Strange... Pin
Tom Archer5-May-02 8:45
Tom Archer5-May-02 8:45 
GeneralRe: Strange... Pin
5-May-02 9:14
suss5-May-02 9:14 
GeneralRe: Strange... Pin
Tom Archer5-May-02 9:38
Tom Archer5-May-02 9:38 
GeneralRe: How do you add items to a combobox? Pin
Nish Nishant5-May-02 9:26
sitebuilderNish Nishant5-May-02 9: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.