Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Paraller Port Comunication. Pin
Gary R. Wheeler27-Oct-02 3:56
Gary R. Wheeler27-Oct-02 3:56 
GeneralRe: Paraller Port Comunication. Pin
Daniel Strigl28-Oct-02 0:41
Daniel Strigl28-Oct-02 0:41 
GeneralOperator overloading! Help! Pin
26-Oct-02 8:43
suss26-Oct-02 8:43 
GeneralRe: Operator overloading! Help! Pin
Paul M Watt26-Oct-02 11:36
mentorPaul M Watt26-Oct-02 11:36 
GeneralRe: Operator overloading! Help! Pin
MGraw26-Oct-02 14:38
sussMGraw26-Oct-02 14:38 
GeneralRe: Operator overloading! Help! Pin
Paul M Watt26-Oct-02 19:44
mentorPaul M Watt26-Oct-02 19:44 
GeneralRe: Operator overloading! Help! Pin
MGraw27-Oct-02 8:51
sussMGraw27-Oct-02 8:51 
GeneralNeed Help(CDC) Pin
26-Oct-02 6:26
suss26-Oct-02 6:26 
Sorry for my English , it is not my own language.

I write a program which draw and move a triangels. When i move i must a redraw area. I use double buffering. I use MDI.
When i moving, after a several time colours are disappears. If i want draw
something i write:

CBrush *brush = new CBrush(m_cColour);
CPen *lpPen = new CPen(PS_SOLID,2,(m_bSelected)?RGB(150,100,50):RGB(0,0,0));
pDC->SelectObject(lpPen);

//Draw

delete brush;
delete lpPen;

May be i must free somethings(resourece) another way.
Please Help.Confused | :confused:

GeneralRe: Need Help(CDC) Pin
Chris Losinger26-Oct-02 11:32
professionalChris Losinger26-Oct-02 11:32 
QuestionHow to programmatically generate GUIDs? Pin
Abin26-Oct-02 6:15
Abin26-Oct-02 6:15 
AnswerRe: How to programmatically generate GUIDs? Pin
Michael Dunn26-Oct-02 6:54
sitebuilderMichael Dunn26-Oct-02 6:54 
AnswerRe: How to programmatically generate GUIDs? Pin
Alexander Wiseman26-Oct-02 9:48
Alexander Wiseman26-Oct-02 9:48 
GeneralRe: How to programmatically generate GUIDs? Pin
Abin26-Oct-02 10:28
Abin26-Oct-02 10:28 
QuestionDLL function export ? Pin
Stan the man26-Oct-02 5:45
Stan the man26-Oct-02 5:45 
AnswerRe: DLL function export ? Pin
Paul M Watt26-Oct-02 6:37
mentorPaul M Watt26-Oct-02 6:37 
Questionare they the same? Pin
includeh1026-Oct-02 4:57
includeh1026-Oct-02 4:57 
AnswerRe: are they the same? Pin
Gary R. Wheeler27-Oct-02 3:39
Gary R. Wheeler27-Oct-02 3:39 
GeneralVisual Studio .NET problem, please help. Pin
Anonymous26-Oct-02 3:38
Anonymous26-Oct-02 3:38 
GeneralRe: Visual Studio .NET problem, please help. Pin
Stephane Rodriguez.26-Oct-02 3:50
Stephane Rodriguez.26-Oct-02 3:50 
Questionhow to change button color and how to ctivate te horizontal defilement bar of a lis Pin
a_hic26-Oct-02 0:53
a_hic26-Oct-02 0:53 
AnswerRe: how to change button color and how to ctivate te horizontal defilement bar of a lis Pin
Nish Nishant26-Oct-02 1:47
sitebuilderNish Nishant26-Oct-02 1:47 
GeneralRe: how to change button color and how to ctivate te horizontal defilement bar of a lis Pin
Rickard Andersson2026-Oct-02 2:29
Rickard Andersson2026-Oct-02 2:29 
GeneralRe: how to change button color and how to ctivate te horizontal defilement bar of a lis Pin
Stephane Rodriguez.26-Oct-02 3:49
Stephane Rodriguez.26-Oct-02 3:49 
AnswerRe: how to change button color and how to ctivate te horizontal defilement bar of a lis Pin
a_hic26-Oct-02 4:18
a_hic26-Oct-02 4:18 
General[MFC] Calling a CFormView member function inside CMainFrm Pin
Lockness26-Oct-02 0:31
Lockness26-Oct-02 0:31 

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.