Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBuilding a DLL Pin
kaine1-Jun-00 6:11
kaine1-Jun-00 6:11 
GeneralRe: Building a DLL Pin
Chris Losinger6-Jun-00 5:12
professionalChris Losinger6-Jun-00 5:12 
QuestionHow to access an Explorer Bar from HTML? Pin
mahesh1-Jun-00 2:53
mahesh1-Jun-00 2:53 
GeneralPlease help with "A required resource" error Pin
Joep1-Jun-00 0:03
Joep1-Jun-00 0:03 
GeneralRe: Please help with Pin
Dmitriy1-Jun-00 6:27
Dmitriy1-Jun-00 6:27 
GeneralRe: Please help with Pin
Tim Deveaux1-Jun-00 6:58
Tim Deveaux1-Jun-00 6:58 
GeneralThanks, that's it! Pin
Joep1-Jun-00 9:04
Joep1-Jun-00 9:04 
GeneralRe: Thanks, that's it! Pin
Dmitriy1-Jun-00 9:42
Dmitriy1-Jun-00 9:42 
It is enough to select old object back one time on the exit in every function where you've select your GDI object:

void MyFunc(CDC* pDC)
{
CPen * pOldPen = pDC->SelectObject(MyPen1);
..
pDC->SelectObject(MyPen2);

..
pDC->SelectObject(MyPen3);
..
pDC->SelectObject(MyPen4);
..
pDC->SelectObject(pOldPen);


}

Very important:
don't forget to call ReleaseDC() if you've called GetDC()
GeneralRe: Thanks, that's it! Pin
Tim Deveaux1-Jun-00 14:21
Tim Deveaux1-Jun-00 14:21 
GeneralMulti/Single selection in a ListBox Pin
magesh31-May-00 19:50
magesh31-May-00 19:50 
GeneralRe: Multi/Single selection in a ListBox Pin
Dmitriy1-Jun-00 6:32
Dmitriy1-Jun-00 6:32 
GeneralRe: Multi/Single selection in a ListBox Pin
magesh2-Jun-00 4:32
magesh2-Jun-00 4:32 
GeneralRe: Multi/Single selection in a ListBox Pin
Dmitriy2-Jun-00 5:36
Dmitriy2-Jun-00 5:36 
GeneralTLB and RGS Pin
rajendra31-May-00 19:45
rajendra31-May-00 19:45 
GeneralRe: TLB and RGS Pin
Alex Gorev1-Jun-00 5:45
Alex Gorev1-Jun-00 5:45 
Generaltab order within a CControlBar or CDialogbar Pin
nickinchina31-May-00 9:53
nickinchina31-May-00 9:53 
QuestionScroll bars in an Explorer Bar? Pin
mahesh31-May-00 5:30
mahesh31-May-00 5:30 
AnswerRe: Scroll bars in an Explorer Bar? Pin
Erik Thompson31-May-00 7:46
sitebuilderErik Thompson31-May-00 7:46 
GeneralRe: Scroll bars in an Explorer Bar? Pin
mahesh31-May-00 7:58
mahesh31-May-00 7:58 
GeneralRe: Scroll bars in an Explorer Bar? Pin
mahesh31-May-00 8:00
mahesh31-May-00 8:00 
GeneralRe: Scroll bars in an Explorer Bar? Pin
mahesh1-Jun-00 4:22
mahesh1-Jun-00 4:22 
GeneralCFileDialog does not open Pin
Member 135631-May-00 2:42
Member 135631-May-00 2:42 
GeneralRe: CFileDialog does not open Pin
Brigg Thorp1-Jun-00 1:45
Brigg Thorp1-Jun-00 1:45 
GeneralRe: CFileDialog does not open Pin
Blake Miller4-Jun-00 15:08
Blake Miller4-Jun-00 15:08 
GeneralRe: CFileDialog does not open Pin
Member 13564-Jun-00 23:59
Member 13564-Jun-00 23:59 

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.