Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Write file properties Pin
MyttO23-Mar-04 6:15
MyttO23-Mar-04 6:15 
GeneralRe: Write file properties Pin
David Crow22-Mar-04 7:18
David Crow22-Mar-04 7:18 
QuestionPossible to kill MessageBox? Pin
J.B.22-Mar-04 4:00
J.B.22-Mar-04 4:00 
AnswerRe: Possible to kill MessageBox? Pin
Ravi Bhavnani22-Mar-04 4:42
professionalRavi Bhavnani22-Mar-04 4:42 
AnswerRe: Possible to kill MessageBox? Pin
Alvaro Mendez22-Mar-04 5:54
Alvaro Mendez22-Mar-04 5:54 
AnswerRe: Possible to kill MessageBox? Pin
casid22-Mar-04 5:54
casid22-Mar-04 5:54 
Generaldraw a combobox Pin
SBellieres22-Mar-04 3:48
SBellieres22-Mar-04 3:48 
GeneralRe: draw a combobox Pin
Maksim Lepikhin22-Mar-04 18:44
Maksim Lepikhin22-Mar-04 18:44 
I guess, the easiest way to do it is to process WM_PAINT, WM_MOUSEMOVE, WM_LBUTTONDOWN, and WM_LBUTTONUP in a CComboBox derived class. Mouse messages are needed to get button state (pressed/depressed). In WM_PAINT you are free to draw whatever button you like. The hardest part in the process outlined is to draw all the shadows correctly. Note that the button is not an actual child window, it's drawn in WM_PAINT processing. And, finally you will need to subclass your dialog item if combo-box is created via a dialog template. Enjoy!

Maksim Lepikhin
www.softforpros.com
GeneralLNK2005 Pin
BlackDice22-Mar-04 3:36
BlackDice22-Mar-04 3:36 
Generalme again Pin
BlackDice22-Mar-04 3:41
BlackDice22-Mar-04 3:41 
GeneralRe: me again Pin
Steve S22-Mar-04 3:52
Steve S22-Mar-04 3:52 
GeneralRe: me again Pin
BlackDice22-Mar-04 4:01
BlackDice22-Mar-04 4:01 
GeneralNewbie Programmer Pin
Or_ange22-Mar-04 3:15
Or_ange22-Mar-04 3:15 
GeneralRe: Newbie Programmer Pin
Alexander M.,22-Mar-04 3:17
Alexander M.,22-Mar-04 3:17 
GeneralRe: Newbie Programmer Pin
Ian Darling22-Mar-04 4:41
Ian Darling22-Mar-04 4:41 
GeneralRe: Newbie Programmer Pin
Alexander M.,22-Mar-04 9:04
Alexander M.,22-Mar-04 9:04 
GeneralRe: Newbie Programmer Pin
Ian Darling22-Mar-04 9:18
Ian Darling22-Mar-04 9:18 
QuestionHow to change it? Pin
Simon Poon22-Mar-04 3:08
Simon Poon22-Mar-04 3:08 
AnswerRe: How to change it? Pin
Antony M Kancidrowski22-Mar-04 6:10
Antony M Kancidrowski22-Mar-04 6:10 
GeneralVisual C++ Message::Box Pin
deniz79s22-Mar-04 2:08
deniz79s22-Mar-04 2:08 
GeneralRe: Visual C++ Message::Box Pin
Tom Wright22-Mar-04 5:12
Tom Wright22-Mar-04 5:12 
Generalsetting the cusor in button object Pin
mymauve2122-Mar-04 1:37
mymauve2122-Mar-04 1:37 
GeneralRe: setting the cusor in button object Pin
Branislav22-Mar-04 3:08
Branislav22-Mar-04 3:08 
GeneralRe: setting the cusor in button object Pin
John R. Shaw22-Mar-04 21:02
John R. Shaw22-Mar-04 21:02 
Generalrounding up Pin
si_6922-Mar-04 1:19
si_6922-Mar-04 1:19 

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.