Click here to Skip to main content
15,889,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: USB Data Pin
mirtu5-Aug-08 18:08
mirtu5-Aug-08 18:08 
QuestionUser interface Pin
kDevloper5-Aug-08 1:06
kDevloper5-Aug-08 1:06 
AnswerRe: User interface Pin
SandipG 5-Aug-08 1:12
SandipG 5-Aug-08 1:12 
AnswerRe: User interface Pin
sudhir_Kumar5-Aug-08 1:56
sudhir_Kumar5-Aug-08 1:56 
AnswerRe: User interface Pin
David Crow5-Aug-08 3:24
David Crow5-Aug-08 3:24 
QuestionWindow Refresh problem Pin
manoharbalu5-Aug-08 0:48
manoharbalu5-Aug-08 0:48 
AnswerRe: Window Refresh problem Pin
SandipG 5-Aug-08 0:52
SandipG 5-Aug-08 0:52 
AnswerRe: Window Refresh problem Pin
sudhir_Kumar5-Aug-08 1:08
sudhir_Kumar5-Aug-08 1:08 
This is because it is getting painted twice for every WM_PAINT it receives. The problem is the WM_ERASEBKGND message, which is sent every time we call BeginPaint. This isn't a problem really - Windows is doing us a favour, because the default action for WM_ERASEBKGND is to draw a nice window background for us (using the window's default background brush), which we can then paint on top of in the WM_PAINT handler.

However, our WM_PAINT handler also draws the control's background, so there is no point in this happening twice. Therefore, we need to prevent the default WM_ERASEBKGND behaviour from happending. As usual, there are a number of ways to do this.

Set the window's background brush to NULL. (Set the hbrBackground member of the WNDCLASS structure to zero when you register the window class).
Return non-zero in the WM_ERASEBKGND message handler.

-@SuDhIrKuMaR@-

AnswerRe: Window Refresh problem Pin
Alan Balkany5-Aug-08 4:55
Alan Balkany5-Aug-08 4:55 
Questioncolumn separator in RichEditCtrl Pin
Ahmed Charfeddine5-Aug-08 0:37
Ahmed Charfeddine5-Aug-08 0:37 
QuestionRe: column separator in RichEditCtrl Pin
David Crow5-Aug-08 3:26
David Crow5-Aug-08 3:26 
AnswerRe: column separator in RichEditCtrl Pin
Ahmed Charfeddine6-Aug-08 3:36
Ahmed Charfeddine6-Aug-08 3:36 
GeneralRe: column separator in RichEditCtrl Pin
David Crow6-Aug-08 6:55
David Crow6-Aug-08 6:55 
GeneralRe: column separator in RichEditCtrl Pin
Ahmed Charfeddine6-Aug-08 20:57
Ahmed Charfeddine6-Aug-08 20:57 
QuestionRe: column separator in RichEditCtrl Pin
David Crow7-Aug-08 2:49
David Crow7-Aug-08 2:49 
QuestionHow can block enter all keys of keyboard in EDIT box of Combo control. [modified] Pin
Le@rner5-Aug-08 0:09
Le@rner5-Aug-08 0:09 
AnswerRe: How can block enter all keys of keyboard in EDIT box. Pin
_AnsHUMAN_ 5-Aug-08 0:18
_AnsHUMAN_ 5-Aug-08 0:18 
GeneralRe: How can block enter all keys of keyboard in EDIT box. Pin
Le@rner5-Aug-08 0:43
Le@rner5-Aug-08 0:43 
GeneralRe: How can block enter all keys of keyboard in EDIT box. Pin
_AnsHUMAN_ 5-Aug-08 2:14
_AnsHUMAN_ 5-Aug-08 2:14 
AnswerRe: How can block enter all keys of keyboard in EDIT box. [modified] Pin
SandipG 5-Aug-08 0:30
SandipG 5-Aug-08 0:30 
GeneralRe: How can block enter all keys of keyboard in EDIT box of Combo box control. Pin
Le@rner5-Aug-08 0:43
Le@rner5-Aug-08 0:43 
GeneralRe: How can block enter all keys of keyboard in EDIT box of Combo box control. Pin
SandipG 5-Aug-08 0:46
SandipG 5-Aug-08 0:46 
GeneralRe: How can block enter all keys of keyboard in EDIT box of Combo box control. Pin
Le@rner5-Aug-08 0:50
Le@rner5-Aug-08 0:50 
GeneralRe: How can block enter all keys of keyboard in EDIT box of Combo box control. Pin
SandipG 5-Aug-08 0:56
SandipG 5-Aug-08 0:56 
GeneralRe: How can block enter all keys of keyboard in EDIT box of Combo box control. Pin
Le@rner5-Aug-08 1:12
Le@rner5-Aug-08 1:12 

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.