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

C / C++ / MFC

 
GeneralCore API Application and manifest Pin
S van Leent27-Jun-02 6:33
S van Leent27-Jun-02 6:33 
QuestionHow to write burning program for CDR! Pin
sunghj27-Jun-02 6:07
sunghj27-Jun-02 6:07 
AnswerRe: How to write burning program for CDR! Pin
Christian Graus27-Jun-02 13:32
protectorChristian Graus27-Jun-02 13:32 
AnswerRe: How to write burning program for CDR! Pin
Mike Nordell28-Jun-02 9:16
Mike Nordell28-Jun-02 9:16 
GeneralGetting the Device Context Pin
JennyP27-Jun-02 6:03
JennyP27-Jun-02 6:03 
GeneralRe: Getting the Device Context Pin
Roger Allen27-Jun-02 6:20
Roger Allen27-Jun-02 6:20 
GeneralRe: Getting the Device Context Pin
JennyP27-Jun-02 6:30
JennyP27-Jun-02 6:30 
GeneralRe: Getting the Device Context Pin
Roger Allen27-Jun-02 6:37
Roger Allen27-Jun-02 6:37 
What you had was almost correct I think.

void CGoalsListView::OnBeginlabeledit(NMHDR* pNMHDR, LRESULT* pResult) 
{
NMLVDISPINFO* pDispInfo=(NMLVDISPINFO*)pNMHDR;

*pResult=1;
CDC* pDC = GetDC();

pDC->SaveDC() ;
CFont *pFont = GetFont() ;
if (pFont != NULL)// you can get NULL if no font has been set for the control
pDC->SelectObject(pFont) ;

...

pDC->RestoreDC(-1) ;
pDC->ReleaseDC() ;
}




Roger Allen
Sonork 100.10016

If I had a quote, it would be a very good one.
GeneralRe: Getting the Device Context Pin
JennyP27-Jun-02 7:13
JennyP27-Jun-02 7:13 
GeneralSimple String Conversion Pin
Ryan B.27-Jun-02 5:05
Ryan B.27-Jun-02 5:05 
GeneralRe: Simple String Conversion Pin
Le centriste27-Jun-02 5:18
Le centriste27-Jun-02 5:18 
GeneralRe: Simple String Conversion Pin
Ryan B.27-Jun-02 5:36
Ryan B.27-Jun-02 5:36 
GeneralRe: Simple String Conversion Pin
Le centriste27-Jun-02 7:36
Le centriste27-Jun-02 7:36 
QuestionHow do I find the task bar color Pin
Rama Krishna Vavilala27-Jun-02 4:42
Rama Krishna Vavilala27-Jun-02 4:42 
AnswerRe: How do I find the task bar color Pin
Scott H. Settlemier27-Jun-02 7:43
Scott H. Settlemier27-Jun-02 7:43 
GeneralSelf Termination Pin
27-Jun-02 4:34
suss27-Jun-02 4:34 
GeneralRe: Self Termination Pin
27-Jun-02 4:53
suss27-Jun-02 4:53 
GeneralRe: Self Termination Pin
Rage27-Jun-02 5:00
professionalRage27-Jun-02 5:00 
GeneralRe: Self Termination Pin
_Magnus_27-Jun-02 5:04
_Magnus_27-Jun-02 5:04 
GeneralRe: Self Termination Pin
Roger Allen27-Jun-02 6:22
Roger Allen27-Jun-02 6:22 
GeneralRe: Self Termination Pin
Scott H. Settlemier27-Jun-02 7:59
Scott H. Settlemier27-Jun-02 7:59 
GeneralIntellisense in VS.NET Pin
Steve Thresher27-Jun-02 4:30
Steve Thresher27-Jun-02 4:30 
GeneralRe: Intellisense in VS.NET Pin
Mike Nordell28-Jun-02 9:20
Mike Nordell28-Jun-02 9:20 
Generalserializing issue Pin
27-Jun-02 4:01
suss27-Jun-02 4:01 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 4:12
Joaquín M López Muñoz27-Jun-02 4:12 

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.