Click here to Skip to main content
16,005,048 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with inheritance Pin
Ryan Binns17-Aug-03 5:41
Ryan Binns17-Aug-03 5:41 
GeneralRe: Problems with inheritance Pin
petter_e17-Aug-03 6:22
petter_e17-Aug-03 6:22 
GeneralCDaoDatabase Open Jet Database Crashing Pin
John Clump16-Aug-03 18:49
John Clump16-Aug-03 18:49 
GeneralRe: CDaoDatabase Open Jet Database Crashing Pin
Terry O'Nolley17-Aug-03 17:48
Terry O'Nolley17-Aug-03 17:48 
GeneralWM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 17:42
Hosam Aly Mahmoud16-Aug-03 17:42 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns16-Aug-03 19:53
Ryan Binns16-Aug-03 19:53 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 23:12
Hosam Aly Mahmoud16-Aug-03 23:12 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns16-Aug-03 23:30
Ryan Binns16-Aug-03 23:30 
Hosam Aly Mahmoud wrote:
I thought that WM_PAINT would only allow me to draw a certain region of the window, not all of it.

The device context given as a parameter to a WM_PAINT message is set up to only draw to the regions of the window which have been invalidated. By definition, any region that is not invalidated, does not need painting, so you shouldn't have a problem.

Hosam Aly Mahmoud wrote:
Also, the docs said that to make a background (for example a picture) you should handle WM_ERASEBKGND. Am I wrong?

WM_ERASEBKGND is sent whenever InvalidateRect() or InvalidateRgn() are called with fErase=TRUE. If the fErase flag is FALSE, then WM_ERASEBKGND is not sent. It is quite ok to draw the background in WM_PAINT however. In fact, to get true flicker-free drawing, it is the only way.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 23:52
Hosam Aly Mahmoud16-Aug-03 23:52 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 0:16
Ryan Binns17-Aug-03 0:16 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 1:28
Hosam Aly Mahmoud17-Aug-03 1:28 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 5:48
Ryan Binns17-Aug-03 5:48 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 11:42
Hosam Aly Mahmoud17-Aug-03 11:42 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 15:16
Ryan Binns17-Aug-03 15:16 
GeneralRe: WM_ERASEBKGND Pin
J. Dunlap17-Aug-03 15:37
J. Dunlap17-Aug-03 15:37 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 15:52
Ryan Binns17-Aug-03 15:52 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 17:36
Hosam Aly Mahmoud17-Aug-03 17:36 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 17:33
Hosam Aly Mahmoud17-Aug-03 17:33 
GeneralWeird run-time error Pin
Cannibal16-Aug-03 17:18
Cannibal16-Aug-03 17:18 
GeneralRe: Weird run-time error Pin
ZoogieZork16-Aug-03 18:33
ZoogieZork16-Aug-03 18:33 
GeneralRe: Weird run-time error Pin
Cannibal17-Aug-03 2:48
Cannibal17-Aug-03 2:48 
GeneralRe: Weird run-time error Pin
valikac17-Aug-03 5:37
valikac17-Aug-03 5:37 
QuestionHow to create a resource dll and export resource symbols? Pin
Abin16-Aug-03 16:25
Abin16-Aug-03 16:25 
AnswerRe: How to create a resource dll and export resource symbols? Pin
Alexander M.,16-Aug-03 23:59
Alexander M.,16-Aug-03 23:59 
GeneralRe: How to create a resource dll and export resource symbols? Pin
Abin17-Aug-03 3:43
Abin17-Aug-03 3:43 

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.