Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load font resource... Pin
Rickard Andersson207-Dec-01 3:16
Rickard Andersson207-Dec-01 3:16 
GeneralModifing DIB colour table Pin
PJ Arends6-Dec-01 23:24
professionalPJ Arends6-Dec-01 23:24 
GeneralRe: Modifing DIB colour table Pin
Henry Jacobs7-Dec-01 6:32
Henry Jacobs7-Dec-01 6:32 
QuestionCheck e-mail? Pin
Rickard Andersson206-Dec-01 21:52
Rickard Andersson206-Dec-01 21:52 
AnswerRe: Check e-mail? Pin
Michael P Butler6-Dec-01 22:26
Michael P Butler6-Dec-01 22:26 
GeneralRe: Check e-mail? Pin
Mustafa Demirhan6-Dec-01 22:32
Mustafa Demirhan6-Dec-01 22:32 
AnswerRe: Check e-mail? Pin
Nish Nishant6-Dec-01 22:30
sitebuilderNish Nishant6-Dec-01 22:30 
GeneralThis CDC* is killing me Pin
6-Dec-01 21:42
suss6-Dec-01 21:42 
Hi,
I have three problems.Please answer.

Problem 1:(BIGGEST)
-------------------
I make a call like this

OnDraw(CDC *pDC)
{
//.....
MyDrawFunction(pDC);
//....
}
Should I release the CDC * in my function because

1)When I scroll rapidly,the figures drawn by my
function looses color;

2)When I use Alt-Tab and return to my program,
the figures will be displaced.

But these things donot happen to the figures drawn by the
OnDraw function.What is the problem?

Problem 2:
---------
When I create DCs inside my function like

CDC *MyDC = GetDC(); or
CClientDC dc(this) etc

and draw with it,I find problem while scrolling.The figures get smudged.
How to avoid this?

Problem 3:
---------
The exact same thing an in Problem 2 happens when each row in a
list control uses a different color.The colors get mixed while
scrolling.


Thanx

GeneralRe: This CDC* is killing me Pin
Rickard Andersson206-Dec-01 21:56
Rickard Andersson206-Dec-01 21:56 
Questionhow to get the handle of the control of another app Pin
6-Dec-01 20:16
suss6-Dec-01 20:16 
AnswerRe: how to get the handle of the control of another app Pin
Rickard Andersson206-Dec-01 21:42
Rickard Andersson206-Dec-01 21:42 
AnswerRe: how to get the handle of the control of another app Pin
6-Dec-01 22:04
suss6-Dec-01 22:04 
GeneralCTreeCtrl right mouse click handling :( Pin
6-Dec-01 19:44
suss6-Dec-01 19:44 
GeneralRe: CTreeCtrl right mouse click handling :( Pin
6-Dec-01 22:09
suss6-Dec-01 22:09 
GeneralRe: CTreeCtrl right mouse click handling :( Pin
6-Dec-01 22:12
suss6-Dec-01 22:12 
GeneralRe: CTreeCtrl right mouse click handling :( Pin
Morozov Alexey6-Dec-01 23:28
Morozov Alexey6-Dec-01 23:28 
GeneralRe: CTreeCtrl right mouse click handling :( Pin
7-Dec-01 2:57
suss7-Dec-01 2:57 
GeneralRe: CTreeCtrl right mouse click handling :( Pin
7-Dec-01 3:21
suss7-Dec-01 3:21 
GeneralRe: Resources in a static library Pin
Henry Jacobs7-Dec-01 4:15
Henry Jacobs7-Dec-01 4:15 
GeneralRe: Resources in a static library Pin
HintiFlo24-Jan-02 4:13
HintiFlo24-Jan-02 4:13 
GeneralRe: Resources in a static library Pin
cdehelean7-Dec-01 4:37
cdehelean7-Dec-01 4:37 
GeneralHistory List Logic Pin
Kevin Power6-Dec-01 18:37
Kevin Power6-Dec-01 18:37 
QuestionHow to get path to the registry key Pin
Eugene Pustovoyt6-Dec-01 18:34
Eugene Pustovoyt6-Dec-01 18:34 
QuestionIs there a way to set how far an icon is from the top in a list control? Pin
Bart-Man6-Dec-01 15:41
Bart-Man6-Dec-01 15:41 
Questionhow to get the word under the cursor Pin
hex6-Dec-01 14:25
hex6-Dec-01 14:25 

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.