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

C / C++ / MFC

 
GeneralRe: ActiveX control repaint Pin
billhao26-Nov-02 17:07
billhao26-Nov-02 17:07 
GeneralRe: ActiveX control repaint Pin
billhao28-Nov-02 21:47
billhao28-Nov-02 21:47 
GeneralDatabase problem in vc++(ODBC) Pin
MFC is the Best25-Nov-02 12:25
MFC is the Best25-Nov-02 12:25 
GeneralRe: Database problem in vc++(ODBC) Pin
dima_t25-Nov-02 17:19
dima_t25-Nov-02 17:19 
GeneralRe: Database problem in vc++(ODBC) Pin
MFC is the Best25-Nov-02 22:00
MFC is the Best25-Nov-02 22:00 
GeneralRe: Database problem in vc++(ODBC) Pin
dima_t26-Nov-02 0:57
dima_t26-Nov-02 0:57 
GeneralStatic library, Threads and Dialog boxes Pin
Clay25-Nov-02 11:17
Clay25-Nov-02 11:17 
GeneralRe: Static library, Threads and Dialog boxes Pin
Joaquín M López Muñoz25-Nov-02 11:31
Joaquín M López Muñoz25-Nov-02 11:31 
GeneralRe: Static library, Threads and Dialog boxes Pin
Bijesh25-Nov-02 11:43
Bijesh25-Nov-02 11:43 
QuestionSimilar to CFileDialog ?? Pin
Still learning how to code25-Nov-02 11:02
Still learning how to code25-Nov-02 11:02 
AnswerRe: Similar to CFileDialog ?? [corrected] Pin
Joaquín M López Muñoz25-Nov-02 11:06
Joaquín M López Muñoz25-Nov-02 11:06 
GeneralRe: Similar to CFileDialog ?? [corrected] Pin
Still learning how to code25-Nov-02 23:24
Still learning how to code25-Nov-02 23:24 
GeneralSpy++ Log to File Question Pin
ursus zeta25-Nov-02 11:02
ursus zeta25-Nov-02 11:02 
GeneralRe: Spy++ Log to File Question Pin
Mike Nordell25-Nov-02 11:41
Mike Nordell25-Nov-02 11:41 
GeneralRe: Spy++ Log to File Question Pin
ursus zeta25-Nov-02 12:15
ursus zeta25-Nov-02 12:15 
Generalprojects and work spaces updates Pin
jimNLX25-Nov-02 9:40
jimNLX25-Nov-02 9:40 
GeneralRe: projects and work spaces updates Pin
Joaquín M López Muñoz25-Nov-02 9:46
Joaquín M López Muñoz25-Nov-02 9:46 
GeneralRe: projects and work spaces updates Pin
jimNLX25-Nov-02 11:11
jimNLX25-Nov-02 11:11 
GeneralRe: projects and work spaces updates Pin
Joaquín M López Muñoz25-Nov-02 11:13
Joaquín M López Muñoz25-Nov-02 11:13 
GeneralRe: projects and work spaces updates Pin
Anonymous26-Nov-02 3:12
Anonymous26-Nov-02 3:12 
GeneralCDC Font Pin
act_x25-Nov-02 8:52
act_x25-Nov-02 8:52 
GeneralRe: CDC Font Pin
Scott H. Settlemier25-Nov-02 9:03
Scott H. Settlemier25-Nov-02 9:03 
GeneralRe: CDC Font Pin
act_x25-Nov-02 9:11
act_x25-Nov-02 9:11 
GeneralRe: CDC Font Pin
Scott H. Settlemier25-Nov-02 9:14
Scott H. Settlemier25-Nov-02 9:14 
GeneralRe: CDC Font Pin
Joaquín M López Muñoz25-Nov-02 9:09
Joaquín M López Muñoz25-Nov-02 9:09 
Some code like this will work (I think):
OnPrint(...)
{
  ...
  if(portion in bold){
    LOGFONT lf;
    pDC->GetCurrentFont()->GetLogFont(&lf);
    lf.lfWeight=FW_BOLD;
    CFont font;
    font.CreateFontIndirect(&lf);
    CFont * pFontOld=pDC->SelectObject(&font);
    // do the printing
    pDC->SelectObject(pFontOld);
  }
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

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.