Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Converting Byte array to Varinat and Variant to Byte array Pin
Stuart Dootson10-Feb-09 8:13
professionalStuart Dootson10-Feb-09 8:13 
GeneralRe: Converting Byte array to Varinat and Variant to Byte array Pin
Elsie10-Feb-09 16:33
Elsie10-Feb-09 16:33 
QuestionCustomized toolbars (dynamically add/remove buttons to toolbars) in MFC ? Pin
Maximilien10-Feb-09 7:15
Maximilien10-Feb-09 7:15 
QuestionWindowLess Rich Text Pin
ForNow10-Feb-09 7:10
ForNow10-Feb-09 7:10 
AnswerRe: WindowLess Rich Text Pin
Stuart Dootson10-Feb-09 8:00
professionalStuart Dootson10-Feb-09 8:00 
GeneralRe: WindowLess Rich Text Pin
ForNow10-Feb-09 13:21
ForNow10-Feb-09 13:21 
GeneralRe: WindowLess Rich Text Pin
ForNow10-Feb-09 13:54
ForNow10-Feb-09 13:54 
QuestionRedrawing lines draw by a user Pin
en9ap10-Feb-09 6:27
en9ap10-Feb-09 6:27 
Hello,

First off, If this question has been answered could you direct me to the correct place. I've carried out a search but had little luck.

I've got a basic drawing program written in C++(Win32 API) which allows me to draw rectangles (using GDI functions) on the screen. I click two points on the window and a rectangle appears. When I minimize the window and restore it again, as expected the rectangle is gone.

Is there a neat solution which keeps the rectangle on screen? The only why I can see is to save the data points and call them when a WM_PAINT message is requested. To me, this method seems like it can get pretty messy, but then again I am a newbie to programming.

Thanks in advance
AnswerRe: Redrawing lines draw by a user Pin
Stuart Dootson10-Feb-09 6:54
professionalStuart Dootson10-Feb-09 6:54 
AnswerRe: Redrawing lines draw by a user Pin
led mike10-Feb-09 6:54
led mike10-Feb-09 6:54 
AnswerRe: Redrawing lines draw by a user Pin
Cedric Moonen10-Feb-09 7:59
Cedric Moonen10-Feb-09 7:59 
GeneralRe: Redrawing lines draw by a user Pin
en9ap11-Feb-09 4:39
en9ap11-Feb-09 4:39 
QuestionToggling highlighting through a CListCtrl in the correct order Pin
Sternocera10-Feb-09 6:01
Sternocera10-Feb-09 6:01 
QuestionHow can i modify my picture control to automatically draw line? Pin
z01e10-Feb-09 5:50
z01e10-Feb-09 5:50 
QuestionBack to basics; just started learnin C++ Pin
EliottA10-Feb-09 5:46
EliottA10-Feb-09 5:46 
AnswerRe: Back to basics; just started learnin C++ Pin
prasad_som10-Feb-09 6:39
prasad_som10-Feb-09 6:39 
AnswerRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 7:24
Eytukan10-Feb-09 7:24 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 7:32
EliottA10-Feb-09 7:32 
GeneralRe: Back to basics; just started learnin C++ Pin
toxcct10-Feb-09 7:51
toxcct10-Feb-09 7:51 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 7:52
EliottA10-Feb-09 7:52 
GeneralRe: Back to basics; just started learnin C++ Pin
toxcct10-Feb-09 7:58
toxcct10-Feb-09 7:58 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 8:01
EliottA10-Feb-09 8:01 
GeneralRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 8:31
Eytukan10-Feb-09 8:31 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 8:33
EliottA10-Feb-09 8:33 
GeneralRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 8:37
Eytukan10-Feb-09 8:37 

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.