Click here to Skip to main content
16,011,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClass and variable renaming Pin
Alois Kraus8-Jan-03 4:30
Alois Kraus8-Jan-03 4:30 
GeneralRe: Class and variable renaming Pin
AlexO8-Jan-03 5:28
AlexO8-Jan-03 5:28 
GeneralRe: Class and variable renaming Pin
Alvaro Mendez8-Jan-03 5:43
Alvaro Mendez8-Jan-03 5:43 
GeneralDetecting double-click on popup menu Pin
mynab8-Jan-03 3:51
mynab8-Jan-03 3:51 
Generaleek! CBrush & SelectObject problem Urgent cwk Pin
smiler8-Jan-03 3:44
smiler8-Jan-03 3:44 
GeneralRe: eek! CBrush & SelectObject problem Urgent cwk Pin
56789012348-Jan-03 3:57
56789012348-Jan-03 3:57 
GeneralRe: eek! CBrush & SelectObject problem Urgent cwk Pin
smiler8-Jan-03 4:16
smiler8-Jan-03 4:16 
GeneralRe: eek! CBrush & SelectObject problem Urgent cwk Pin
jhwurmbach8-Jan-03 4:06
jhwurmbach8-Jan-03 4:06 
Try something like this:
[...]
{
CBrush myBrush;
myBrush.CreateSolidBrush(RGB(255,0,0));
CBrush* pOldBrush pDC->SelectObject(&myBrush);
pDC->...
...
pDC->SelectObject(pOldBrush);
}
[...].
This way, you are sure to select the brush out of the DC (by selecting in whatever has been there before) before the variable that contains it goes out of scope.
Hope this helps

--
"My opinions may have changed, but not the fact that I am right."
Found in the sig of Herbert Kaminski
Generalsplitting the window Pin
atif_8-Jan-03 2:49
atif_8-Jan-03 2:49 
Generalvisiodistributing application Pin
asif baba8-Jan-03 2:48
sussasif baba8-Jan-03 2:48 
GeneralRe: visiodistributing application Pin
jmkhael8-Jan-03 3:13
jmkhael8-Jan-03 3:13 
Generalmaking dynamic splitting static Pin
atif_8-Jan-03 2:29
atif_8-Jan-03 2:29 
GeneralInterested in Packet filtering Pin
summo8-Jan-03 2:19
summo8-Jan-03 2:19 
GeneralNeed help in Firewall development Pin
summo8-Jan-03 1:58
summo8-Jan-03 1:58 
GeneralRe: Need help in Firewall development Pin
jmkhael8-Jan-03 2:40
jmkhael8-Jan-03 2:40 
GeneralCRichEditCtrl Problem Persist Pin
Ricky_TheBard8-Jan-03 1:52
Ricky_TheBard8-Jan-03 1:52 
GeneralRe: CRichEditCtrl Problem Persist Pin
Roger Allen8-Jan-03 2:19
Roger Allen8-Jan-03 2:19 
GeneralRe: CRichEditCtrl Problem Persist Pin
Ricky_TheBard8-Jan-03 2:31
Ricky_TheBard8-Jan-03 2:31 
GeneralCPaintDC vs CClientDC Pin
nelzanoide8-Jan-03 1:42
nelzanoide8-Jan-03 1:42 
GeneralRe: CPaintDC vs CClientDC Pin
56789012348-Jan-03 4:01
56789012348-Jan-03 4:01 
GeneralRe: CPaintDC vs CClientDC Pin
nelzanoide8-Jan-03 4:12
nelzanoide8-Jan-03 4:12 
GeneralRe: CPaintDC vs CClientDC Pin
56789012348-Jan-03 4:24
56789012348-Jan-03 4:24 
GeneralRe: CPaintDC vs CClientDC Pin
nelzanoide8-Jan-03 4:36
nelzanoide8-Jan-03 4:36 
GeneralRe: CPaintDC vs CClientDC Pin
Alois Kraus8-Jan-03 4:42
Alois Kraus8-Jan-03 4:42 
GeneralRe: CPaintDC vs CClientDC Pin
nelzanoide8-Jan-03 4:46
nelzanoide8-Jan-03 4:46 

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.