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

C / C++ / MFC

 
GeneralI need Help on Database Programming!!! Pin
Member 123981320-Jul-04 10:03
Member 123981320-Jul-04 10:03 
GeneralRe: I need Help on Database Programming!!! Pin
David Crow20-Jul-04 10:33
David Crow20-Jul-04 10:33 
GeneralCreating ActiveX control (variable types) Pin
BlackDice20-Jul-04 9:26
BlackDice20-Jul-04 9:26 
Generalwindow message Pin
Anonymous20-Jul-04 9:10
Anonymous20-Jul-04 9:10 
GeneralRe: window message Pin
Alexander Wiseman20-Jul-04 9:21
Alexander Wiseman20-Jul-04 9:21 
GeneralRe: window message Pin
Anonymous20-Jul-04 9:35
Anonymous20-Jul-04 9:35 
GeneralRe: window message Pin
Alexander Wiseman20-Jul-04 11:29
Alexander Wiseman20-Jul-04 11:29 
GeneralRe: window message Pin
Bob Stanneveld20-Jul-04 12:58
Bob Stanneveld20-Jul-04 12:58 
Hello,

You can work around this problem of the WM_PAINT message.


Anonymous wrote:
The problem is I cannot use WM_PAINT to draw. I have a common user defined function that gets the DC for the drawing. My app calls this function at many places and at each time the drawing is different which i manage using flags.

You can store the flags in member variables (or if there are not to may as a parameter for a WM_PAINT message).

The thing you do is call your drawing function from OnPaint() or put the drawing code into OnPaint(). Second, at every place you call your custom drawing function, you send a WM_PAINT message with the flags as parameters (or set the flags in member variables).

Good luck.



A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.


GeneralCOM programming Pin
Tropicana20-Jul-04 8:48
Tropicana20-Jul-04 8:48 
GeneralRe: COM programming Pin
Antti Keskinen20-Jul-04 11:58
Antti Keskinen20-Jul-04 11:58 
GeneralDoc/View Philosophical Question... Pin
Nitron20-Jul-04 8:11
Nitron20-Jul-04 8:11 
GeneralRe: Doc/View Philosophical Question... Pin
Ravi Bhavnani20-Jul-04 9:56
professionalRavi Bhavnani20-Jul-04 9:56 
GeneralRe: Doc/View Philosophical Question... Pin
David Crow20-Jul-04 10:37
David Crow20-Jul-04 10:37 
GeneralRe: Doc/View Philosophical Question... Pin
Bob Stanneveld20-Jul-04 13:05
Bob Stanneveld20-Jul-04 13:05 
Generalsetting dialog size Pin
Anonymous20-Jul-04 6:39
Anonymous20-Jul-04 6:39 
GeneralRe: setting dialog size Pin
Nitron20-Jul-04 7:28
Nitron20-Jul-04 7:28 
GeneralRe: setting dialog size Pin
David Crow20-Jul-04 10:38
David Crow20-Jul-04 10:38 
GeneralIE Favorites Pin
Anonymous20-Jul-04 4:34
Anonymous20-Jul-04 4:34 
GeneralRe: IE Favorites Pin
Ravi Bhavnani20-Jul-04 5:34
professionalRavi Bhavnani20-Jul-04 5:34 
QuestionHow to handle doubleclick on a toolbar Pin
MyttO20-Jul-04 4:27
MyttO20-Jul-04 4:27 
AnswerRe: How to handle doubleclick on a toolbar Pin
Alexander Wiseman20-Jul-04 5:24
Alexander Wiseman20-Jul-04 5:24 
QuestionHow to Enable EditBox through Win32Application(SDK) Pin
Anonymous20-Jul-04 3:37
Anonymous20-Jul-04 3:37 
AnswerRe: How to Enable EditBox through Win32Application(SDK) Pin
David Crow20-Jul-04 3:53
David Crow20-Jul-04 3:53 
AnswerRe: How to Enable EditBox through Win32Application(SDK) Pin
bikram singh20-Jul-04 4:30
bikram singh20-Jul-04 4:30 
Generalmenu ID Pin
V.20-Jul-04 3:21
professionalV.20-Jul-04 3:21 

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.