Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TRACE to a log Pin
Navin11-Dec-02 5:36
Navin11-Dec-02 5:36 
GeneralRe: TRACE to a log Pin
Alvaro Mendez11-Dec-02 7:05
Alvaro Mendez11-Dec-02 7:05 
GeneralThanks everyone... Pin
RobJones11-Dec-02 8:40
RobJones11-Dec-02 8:40 
GeneralRe: Thanks everyone... Pin
Alvaro Mendez11-Dec-02 8:46
Alvaro Mendez11-Dec-02 8:46 
GeneralExpense of creating GDI objects Pin
raja huus11-Dec-02 3:52
sussraja huus11-Dec-02 3:52 
QuestionHow are the UI stuff actually drawn by Windows Pin
Malcom Krujic11-Dec-02 3:32
sussMalcom Krujic11-Dec-02 3:32 
AnswerRe: How are the UI stuff actually drawn by Windows Pin
jhwurmbach11-Dec-02 3:52
jhwurmbach11-Dec-02 3:52 
AnswerRe: How are the UI stuff actually drawn by Windows Pin
Maximilien11-Dec-02 3:59
Maximilien11-Dec-02 3:59 
Talking about MFC...

Controls ( Tabs, Buttons, ... ) are usually derived from CWnd, and handle message via the message routing.

WM_PAINT is one of those message, the message is send to each CWnd, and if the CWnd handles it ( added an ON_WM_PAINT to the MessageMap section of the class, and OnPaint member function ) it will be drawn there.

Some UI objects like buttons, menu, listbox, offer a style OWNERDRAW, that can be set in the resource editor, or at creation time, when this flag is set, the DrawItem member function is called; in which you can also draw.

The CTabCtrl offer the OWNERDRAW style, search here, at codeproject, maybe there's already something like that, and there's a HOWTO on MSDN with DrawItem and CTabCtrl that can help.

Max.

GeneralRe: How are the UI stuff actually drawn by Windows Pin
MALCOM11-Dec-02 4:11
MALCOM11-Dec-02 4:11 
GeneralTime span format Pin
dabs11-Dec-02 3:28
dabs11-Dec-02 3:28 
GeneralCheckBook program Pin
Autunmsky11-Dec-02 3:25
Autunmsky11-Dec-02 3:25 
QuestionHow to create new DNS Zone with C/C++? Pin
Matias11-Dec-02 3:20
Matias11-Dec-02 3:20 
QuestionListCtrl: How can i make the last column visible for the user? Pin
whofmans11-Dec-02 2:36
whofmans11-Dec-02 2:36 
AnswerRe: ListCtrl: How can i make the last column visible for the user? Pin
Roger Allen11-Dec-02 2:55
Roger Allen11-Dec-02 2:55 
GeneralIVariantDictionary HELL !!!! Pin
Christian Graus11-Dec-02 0:59
protectorChristian Graus11-Dec-02 0:59 
GeneralRe: IVariantDictionary HELL !!!! Pin
Stephane Rodriguez.11-Dec-02 2:02
Stephane Rodriguez.11-Dec-02 2:02 
GeneralRe: IVariantDictionary HELL !!!! Pin
Christian Graus11-Dec-02 10:05
protectorChristian Graus11-Dec-02 10:05 
GeneralRe: IVariantDictionary HELL !!!! Pin
Stephane Rodriguez.11-Dec-02 10:16
Stephane Rodriguez.11-Dec-02 10:16 
GeneralRe: IVariantDictionary HELL !!!! Pin
Rene De La Garza11-Dec-02 3:37
Rene De La Garza11-Dec-02 3:37 
GeneralRe: IVariantDictionary HELL !!!! Pin
Daniel Turini11-Dec-02 4:32
Daniel Turini11-Dec-02 4:32 
GeneralScrolling in Listbox Pin
kubbazoob11-Dec-02 0:06
kubbazoob11-Dec-02 0:06 
GeneralRe: Scrolling in Listbox Pin
Joan M11-Dec-02 5:18
professionalJoan M11-Dec-02 5:18 
GeneralRe: Scrolling in Listbox Pin
Alvaro Mendez11-Dec-02 8:43
Alvaro Mendez11-Dec-02 8:43 
QuestionHow to remove a handle HFONT from memory? Pin
Daed11-Dec-02 0:00
Daed11-Dec-02 0:00 
AnswerRe: How to remove a handle HFONT from memory? Pin
Gert Boddaert11-Dec-02 0:25
Gert Boddaert11-Dec-02 0:25 

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.