Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mouse button down Pin
_AnsHUMAN_ 31-Aug-06 2:41
_AnsHUMAN_ 31-Aug-06 2:41 
GeneralRe: Mouse button down Pin
majco33331-Aug-06 2:35
majco33331-Aug-06 2:35 
GeneralRe: Mouse button down Pin
_AnsHUMAN_ 31-Aug-06 3:22
_AnsHUMAN_ 31-Aug-06 3:22 
GeneralRe: Mouse button down Pin
majco33331-Aug-06 3:25
majco33331-Aug-06 3:25 
QuestionHow do I write red text to a CDialogBar? Pin
IlanTal31-Aug-06 1:39
IlanTal31-Aug-06 1:39 
AnswerRe: How do I write red text to a CDialogBar? Pin
ovidiucucu31-Aug-06 6:16
ovidiucucu31-Aug-06 6:16 
GeneralRe: How do I write red text to a CDialogBar? Pin
IlanTal3-Sep-06 21:44
IlanTal3-Sep-06 21:44 
GeneralRe: How do I write red text to a CDialogBar? Pin
ovidiucucu4-Sep-06 0:04
ovidiucucu4-Sep-06 0:04 
You have chosen the harder way, but that's it... your choice.
However, here are some "first look" remarks:
<list>
  • I put SetFont in WM_INITDIALOG message handler only as an example; you can put it also in any oter place, then call Invalidate() as well.
  • No need to write your own CMyToolbar::Invalidate function, as long as you can directly call Invalidate for the desired control.
    GetDlgItem(IDC_PATINFO)->Invalidate();

  • As long as you have not handled WM_PAINT in the static control, but you draw text in it from another place, for sure you'll have troubles after another window will overlap; just test it and see if I'm right.


    Ovidiu

  • GeneralRe: How do I write red text to a CDialogBar? Pin
    IlanTal4-Sep-06 20:19
    IlanTal4-Sep-06 20:19 
    GeneralRe: How do I write red text to a CDialogBar? Pin
    IlanTal4-Sep-06 23:06
    IlanTal4-Sep-06 23:06 
    Question(*pf)(int); *pf(int); Pin
    Max++31-Aug-06 1:21
    Max++31-Aug-06 1:21 
    AnswerRe: (*pf)(int); *pf(int); Pin
    salman kazi31-Aug-06 1:40
    salman kazi31-Aug-06 1:40 
    AnswerRe: (*pf)(int); *pf(int); Pin
    toxcct31-Aug-06 1:56
    toxcct31-Aug-06 1:56 
    Questionhow i block the e-mail attachment in VC++? Pin
    salman kazi31-Aug-06 1:19
    salman kazi31-Aug-06 1:19 
    QuestionWindows date and time conversion Pin
    ashokvishnu31-Aug-06 0:57
    ashokvishnu31-Aug-06 0:57 
    AnswerRe: Windows date and time conversion Pin
    _AnsHUMAN_ 31-Aug-06 1:01
    _AnsHUMAN_ 31-Aug-06 1:01 
    AnswerRe: View Refresh problem Pin
    Cedric Moonen31-Aug-06 0:52
    Cedric Moonen31-Aug-06 0:52 
    QuestionCGRAPH OR MS CHART?? Pin
    weehau31-Aug-06 0:20
    weehau31-Aug-06 0:20 
    AnswerRe: CGRAPH OR MS CHART?? Pin
    toxcct31-Aug-06 0:40
    toxcct31-Aug-06 0:40 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    Cedric Moonen31-Aug-06 0:51
    Cedric Moonen31-Aug-06 0:51 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    toxcct31-Aug-06 0:51
    toxcct31-Aug-06 0:51 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    dinesh_IP31-Aug-06 1:50
    dinesh_IP31-Aug-06 1:50 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    toxcct31-Aug-06 1:57
    toxcct31-Aug-06 1:57 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    Cedric Moonen31-Aug-06 2:29
    Cedric Moonen31-Aug-06 2:29 
    GeneralRe: CGRAPH OR MS CHART?? Pin
    Rage31-Aug-06 3:47
    professionalRage31-Aug-06 3:47 

    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.