Click here to Skip to main content
16,013,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unknown size array Pin
Member 111482118-Jun-04 15:42
Member 111482118-Jun-04 15:42 
Questionwhat are the available DDE Server Data Format to write to Excel Pin
swerajan18-Jun-04 2:55
swerajan18-Jun-04 2:55 
GeneralEven more Serialization! Pin
Anonymous18-Jun-04 2:54
Anonymous18-Jun-04 2:54 
GeneralRe: Even more Serialization! Pin
Blake Miller18-Jun-04 4:19
Blake Miller18-Jun-04 4:19 
QuestionHow to refresh a particular region Pin
Arun AC18-Jun-04 2:29
Arun AC18-Jun-04 2:29 
AnswerRe: How to refresh a particular region Pin
Ravi Bhavnani18-Jun-04 2:42
professionalRavi Bhavnani18-Jun-04 2:42 
AnswerRe: How to refresh a particular region Pin
Johan Rosengren18-Jun-04 4:37
Johan Rosengren18-Jun-04 4:37 
AnswerRe: How to refresh a particular region Pin
John R. Shaw18-Jun-04 9:32
John R. Shaw18-Jun-04 9:32 
OnEraseBkgnd():
return TRUE; // do all drawing in OnDraw()

OnLButtonDown():
pointAnchor = point;
rectCurrent.Set(point.x,point.y,point.x+1,point.y+1);
InvalidateRect(rectCurrent);

OnMouseMove():
rectNew.Set(pointAnchor.x,pointAnchor.y,point.x,poin.y);
rectNew.NormalizeRect();
rectNew.bottom++;
rectNew.right++;
rectCurrent.UnionRect(rectCurrent,rectNew);
InvalidateRect(rectCurrent);
rectCurrent = rectNew;

OnDraw():
Normaly in the above you would have been drawing to a bitmap via a memory DC.
BitBlt(...);
ExcludeClipRect(bitmapRect); // area where you blited the bitmap
CRect rcClip;
pDC->GetClipBox(&rcClip);
pDC->FillSolidRect( // fill in background
rcClip.left,rcClip.top,rcClip.Width(),rcClip.Height(),
::GetSysColor(COLOR_WINDOW));

With that said check out the article CExBitmap, it was designed to be used in a paint program.

Good luck!


INTP
GeneralUrgent Named Pipe issue Pin
A T I F18-Jun-04 1:48
A T I F18-Jun-04 1:48 
GeneralRe: Urgent Named Pipe issue Pin
vcplusplus18-Jun-04 3:35
vcplusplus18-Jun-04 3:35 
GeneralRemoving Non-Client area of a window Pin
alexei_p18-Jun-04 1:36
alexei_p18-Jun-04 1:36 
GeneralRe: Removing Non-Client area of a window Pin
Ravi Bhavnani18-Jun-04 2:43
professionalRavi Bhavnani18-Jun-04 2:43 
GeneralHandling of window opening Pin
alexei_p18-Jun-04 1:33
alexei_p18-Jun-04 1:33 
GeneralRe: Handling of window opening Pin
Rodrigo Pinto Pereira de Souza18-Jun-04 1:48
Rodrigo Pinto Pereira de Souza18-Jun-04 1:48 
Generalfree pointer problem Pin
mufasa218-Jun-04 1:00
mufasa218-Jun-04 1:00 
GeneralRe: free pointer problem Pin
jmkhael18-Jun-04 1:15
jmkhael18-Jun-04 1:15 
GeneralRe: free pointer problem Pin
Rodrigo Pinto Pereira de Souza18-Jun-04 1:54
Rodrigo Pinto Pereira de Souza18-Jun-04 1:54 
GeneralUsing VC++6 .dll and .lib in VC.NET Pin
Freddie Code18-Jun-04 0:58
Freddie Code18-Jun-04 0:58 
GeneralUsing dll... Pin
uniqueworld18-Jun-04 0:40
uniqueworld18-Jun-04 0:40 
GeneralRe: Using dll... Pin
irshad_bukhari18-Jun-04 3:45
irshad_bukhari18-Jun-04 3:45 
Generalgeneral question about network traffic detection Pin
SireNexus17-Jun-04 23:27
SireNexus17-Jun-04 23:27 
GeneralRe: general question about network traffic detection Pin
Trollslayer18-Jun-04 1:34
mentorTrollslayer18-Jun-04 1:34 
GeneralRe: general question about network traffic detection Pin
Antony M Kancidrowski18-Jun-04 4:12
Antony M Kancidrowski18-Jun-04 4:12 
GeneralCheck for existing directory Pin
Cedric Moonen17-Jun-04 23:22
Cedric Moonen17-Jun-04 23:22 
GeneralRe: Check for existing directory Pin
Arjan Schouten17-Jun-04 23:38
Arjan Schouten17-Jun-04 23:38 

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.