Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrawing Doubt Pin
RuiSantiago31-Oct-02 1:08
RuiSantiago31-Oct-02 1:08 
GeneralRe: Drawing Doubt Pin
dabs31-Oct-02 2:18
dabs31-Oct-02 2:18 
GeneralRe: Drawing Doubt Pin
RuiSantiago31-Oct-02 4:43
RuiSantiago31-Oct-02 4:43 
GeneralRe: Drawing Doubt Pin
dabs31-Oct-02 5:21
dabs31-Oct-02 5:21 
GeneralRe: Drawing Doubt Pin
RuiSantiago31-Oct-02 5:38
RuiSantiago31-Oct-02 5:38 
GeneralRe: Drawing Doubt Pin
dabs31-Oct-02 5:47
dabs31-Oct-02 5:47 
GeneralRe: Drawing Doubt Pin
RuiSantiago31-Oct-02 5:59
RuiSantiago31-Oct-02 5:59 
GeneralRe: Drawing Doubt Pin
dabs31-Oct-02 6:33
dabs31-Oct-02 6:33 
Aside from the fact that you are casting a CBrush* to HBRUSH (which won't work) and that you forget to deselect your font out of the device context then there's nothing inherently wrong with this code. But why don't you simply use the resource editor in Visual C++ to arrange the form in a way you want? There are controls available that allow you to change the color of static text easily and if you want another background color in your form you can handle WM_ERASEBKGRND to change it. You actually don't need to do anything at all in OnDraw if you don't want to. Or are there other requirements that I'm not aware of?



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralRe: Drawing Doubt Pin
RuiSantiago31-Oct-02 7:00
RuiSantiago31-Oct-02 7:00 
GeneralRe: Drawing Doubt Pin
dabs31-Oct-02 12:38
dabs31-Oct-02 12:38 
GeneralImplementing Custom Windows Control Pin
Maxime Labelle31-Oct-02 0:38
Maxime Labelle31-Oct-02 0:38 
GeneralSerial Comms Pin
Ruca31-Oct-02 0:05
Ruca31-Oct-02 0:05 
GeneralRe: Serial Comms Pin
Trollslayer31-Oct-02 1:46
mentorTrollslayer31-Oct-02 1:46 
GeneralRe: Serial Comms Pin
Gary R. Wheeler2-Nov-02 5:10
Gary R. Wheeler2-Nov-02 5:10 
QuestionGDI question, drawing fine dotted line (again)? Pin
Anonymous31-Oct-02 0:01
Anonymous31-Oct-02 0:01 
AnswerRe: GDI question, drawing fine dotted line (again)? Pin
dabs31-Oct-02 2:39
dabs31-Oct-02 2:39 
GeneralRe: GDI question, drawing fine dotted line (again)? Pin
Anonymous31-Oct-02 3:10
Anonymous31-Oct-02 3:10 
AnswerRe: GDI question, drawing fine dotted line (again)? Pin
Scott H. Settlemier31-Oct-02 6:01
Scott H. Settlemier31-Oct-02 6:01 
GeneralDuplicate socket across process boundaries Pin
Anonymous30-Oct-02 23:57
Anonymous30-Oct-02 23:57 
GeneralRe: Duplicate socket across process boundaries Pin
Gary R. Wheeler2-Nov-02 5:20
Gary R. Wheeler2-Nov-02 5:20 
GeneralRebar and storing of position bands Pin
Trantor30-Oct-02 23:44
Trantor30-Oct-02 23:44 
GeneralDial-up Connection and CAysncSocket PROBLEMS! Pin
Wenrich30-Oct-02 23:19
Wenrich30-Oct-02 23:19 
GeneralRe: Dial-up Connection and CAysncSocket PROBLEMS! Pin
Anonymous31-Oct-02 0:07
Anonymous31-Oct-02 0:07 
Generaldrag&drop question Pin
apu_be30-Oct-02 23:17
apu_be30-Oct-02 23:17 
GeneralRe: drag&drop question Pin
dabs31-Oct-02 2:26
dabs31-Oct-02 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.