Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Set Visual Style for an application (and only for it) Pin
Michael Dunn3-Apr-05 11:47
sitebuilderMichael Dunn3-Apr-05 11:47 
Generalcximage code Pin
Lampros Giampouras3-Apr-05 3:37
Lampros Giampouras3-Apr-05 3:37 
GeneralHook and postmessage Pin
Member 6893613-Apr-05 3:17
Member 6893613-Apr-05 3:17 
GeneralRe: Hook and postmessage Pin
dSolariuM3-Apr-05 9:11
dSolariuM3-Apr-05 9:11 
GeneralRe: Hook and postmessage Pin
Anonymous3-Apr-05 19:23
Anonymous3-Apr-05 19:23 
Generalguide for packet sniffer(its urgent) Pin
smarty122-Apr-05 22:30
smarty122-Apr-05 22:30 
GeneralRe: guide for packet sniffer(its urgent) Pin
Antony M Kancidrowski3-Apr-05 1:54
Antony M Kancidrowski3-Apr-05 1:54 
QuestionMFC : OnCtlColor causes problems for combo box? Pin
gregshukla2-Apr-05 22:24
gregshukla2-Apr-05 22:24 
Hello,

I have an MFC dialog that is painted with a custom image background to provide it a jazzy look. Also, all the static labels are owner drawn, and in OnCtlColor I set a transparent background and return a null brush so that my bitmap background will be visible through.

However, I find that this is causing problems for a combo box with dropdown style that I have on the same dialog. If I directly type some text say "12345" into the edit portion of the combo box, and then choose a string "12" from the drop-down list, then the earlier 12345 continues to be visible in the edit portion!! really weird behavior.

I traced the problem down to ON_WM_CTLCOLOR. If I remove ON_WM_CTLCOLOR from the BEGIN_MESSAGE_MAP/END_MESSAGE_MAP entries, then the combo works perfectly normal, but I obviously cannot remove the WM_CTLCOLOR permanently.

Any help will be greatly appreciated, this is an urgent request please, this software will be released into the market within a week, and I am simply stuck after a lot of tryng to figure out whats wrong.
AnswerRe: MFC : OnCtlColor causes problems for combo box? Pin
gregshukla3-Apr-05 0:05
gregshukla3-Apr-05 0:05 
AnswerRe: MFC : OnCtlColor causes problems for combo box? Pin
Anonymous3-Apr-05 0:51
Anonymous3-Apr-05 0:51 
Generalpacket sniffer using vc++ Pin
smarty122-Apr-05 17:55
smarty122-Apr-05 17:55 
GeneralRe: packet sniffer using vc++ Pin
ThatsAlok2-Apr-05 18:01
ThatsAlok2-Apr-05 18:01 
Generaleasy algorythm problem Pin
Anonymous2-Apr-05 17:15
Anonymous2-Apr-05 17:15 
GeneralRe: easy algorythm problem Pin
Anonymous2-Apr-05 17:27
Anonymous2-Apr-05 17:27 
GeneralRe: easy algorythm problem Pin
ThatsAlok2-Apr-05 17:58
ThatsAlok2-Apr-05 17:58 
GeneralRe: easy algorythm problem Pin
David Crow4-Apr-05 3:20
David Crow4-Apr-05 3:20 
QuestionHow can acess the pixels of my bmp image? Pin
awasthy2-Apr-05 14:54
awasthy2-Apr-05 14:54 
AnswerRe: How can acess the pixels of my bmp image? Pin
ThatsAlok2-Apr-05 17:36
ThatsAlok2-Apr-05 17:36 
QuestionBring window to top? Pin
Ravi Bhavnani2-Apr-05 14:27
professionalRavi Bhavnani2-Apr-05 14:27 
AnswerWorkaround Pin
Ravi Bhavnani2-Apr-05 14:55
professionalRavi Bhavnani2-Apr-05 14:55 
AnswerRe: Bring window to top? Pin
Michael Dunn2-Apr-05 16:37
sitebuilderMichael Dunn2-Apr-05 16:37 
GeneralRe: Bring window to top? Pin
Ravi Bhavnani2-Apr-05 16:41
professionalRavi Bhavnani2-Apr-05 16:41 
General3ds max XFile Export Pin
akira322-Apr-05 13:04
akira322-Apr-05 13:04 
GeneralDownload XskinExp for 3ds max7 Pin
akira322-Apr-05 12:58
akira322-Apr-05 12:58 
GeneralXSkinExp for 3ds max7 Pin
akira322-Apr-05 12:29
akira322-Apr-05 12:29 

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.