Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable Special key's Pin
Larsson21-Jun-04 7:05
Larsson21-Jun-04 7:05 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 9:50
David Crow21-Jun-04 9:50 
GeneralRe: Disable Special key's Pin
Larsson21-Jun-04 9:54
Larsson21-Jun-04 9:54 
GeneralRe: Disable Special key's Pin
ThatsAlok21-Jun-04 21:45
ThatsAlok21-Jun-04 21:45 
GeneralRe: Disable Special key's Pin
Larsson22-Jun-04 3:50
Larsson22-Jun-04 3:50 
GeneralRe: Disable Special key's Pin
gamitech22-Jun-04 13:34
gamitech22-Jun-04 13:34 
GeneralRe: Device context questions Pin
Pazzuzu21-Jun-04 3:46
Pazzuzu21-Jun-04 3:46 
GeneralRe: Device context questions Pin
Blake Miller21-Jun-04 3:59
Blake Miller21-Jun-04 3:59 
You need to store the data for your lines some other way.
Perhaps in an array of some data class representing the drawing to be performed.
Then, when the user does something, like move the mouse, add some data to your array for the new lines, and then call Invalidate() for your window.
The OnDraw will be called because of the painting to be done, and then you can go through your list of objects and draw the lines.

Basically, you should internally represent all drawing to be done with some data classes and then transform that data to drawing function calls in the OnDraw method.

If you do nto have htis data, and user draws soemthing, then when another window covers yours, and you get a paint message (OnDraw is claled) you will probably lose all the drawing you already did.

GeneralRe: Device context questions Pin
Pazzuzu21-Jun-04 4:06
Pazzuzu21-Jun-04 4:06 
Generalshow dialog in a dll Pin
yingkou21-Jun-04 3:22
yingkou21-Jun-04 3:22 
GeneralRe: show dialog in a dll Pin
rrrado21-Jun-04 3:51
rrrado21-Jun-04 3:51 
GeneralRe: show dialog in a dll Pin
wb21-Jun-04 10:59
wb21-Jun-04 10:59 
GeneralDevice context questions Pin
Pazzuzu21-Jun-04 3:18
Pazzuzu21-Jun-04 3:18 
GeneralRe: Device context questions Pin
Blake Miller21-Jun-04 3:23
Blake Miller21-Jun-04 3:23 
GeneralRe: Device context questions Pin
Pazzuzu21-Jun-04 3:26
Pazzuzu21-Jun-04 3:26 
GeneralRe: Device context questions Pin
Blake Miller21-Jun-04 3:40
Blake Miller21-Jun-04 3:40 
GeneralIE/WebBrowser control stealing focus Pin
rrrado21-Jun-04 2:21
rrrado21-Jun-04 2:21 
GeneralWinXP log in screen Pin
sirtimid21-Jun-04 2:15
sirtimid21-Jun-04 2:15 
GeneralRe: WinXP log in screen Pin
Antony M Kancidrowski21-Jun-04 2:44
Antony M Kancidrowski21-Jun-04 2:44 
GeneralMessage Closed Pin
21-Jun-04 2:59
Lars Lundstedt21-Jun-04 2:59 
GeneralRe: WinXP log in screen Pin
sirtimid21-Jun-04 3:14
sirtimid21-Jun-04 3:14 
GeneralRe: WinXP log in screen Pin
Maximilien21-Jun-04 3:26
Maximilien21-Jun-04 3:26 
GeneralRe: WinXP log in screen Pin
jmkhael21-Jun-04 3:44
jmkhael21-Jun-04 3:44 
GeneralDHTML + VC++ Pin
Anonymous21-Jun-04 2:01
Anonymous21-Jun-04 2:01 
GeneralRe: DHTML + VC++ Pin
Andrew Quinn AUS21-Jun-04 4:44
Andrew Quinn AUS21-Jun-04 4:44 

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.