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

C / C++ / MFC

 
AnswerRe: std::vector gives linear memory - STL? Pin
Stuart Dootson23-Aug-02 8:42
professionalStuart Dootson23-Aug-02 8:42 
GeneralGeneral Question Pin
BK Pradeep22-Aug-02 23:34
BK Pradeep22-Aug-02 23:34 
GeneralRe: General Question Pin
pankajdaga22-Aug-02 23:43
pankajdaga22-Aug-02 23:43 
GeneralQuestion about BeginPaint and EndPaint Pin
pankajdaga22-Aug-02 22:32
pankajdaga22-Aug-02 22:32 
GeneralRe: Question about BeginPaint and EndPaint Pin
Paul M Watt22-Aug-02 22:41
mentorPaul M Watt22-Aug-02 22:41 
GeneralRe: Question about BeginPaint and EndPaint Pin
Tomasz Sowinski22-Aug-02 22:42
Tomasz Sowinski22-Aug-02 22:42 
GeneralRe: Question about BeginPaint and EndPaint Pin
Paul M Watt22-Aug-02 22:52
mentorPaul M Watt22-Aug-02 22:52 
GeneralRe: Question about BeginPaint and EndPaint Pin
pankajdaga22-Aug-02 23:31
pankajdaga22-Aug-02 23:31 
Hey guys!

Thanks for the reply. Everything is clear now.

I knew that the window was not receiving any paint messages when I used BeginPaint. I just needed to know why Smile | :) I am just crazy for details. Usually, never satisfied if a thing works, I want to know why it does or does not work.

So, I subclassed my abstract canvas class into 2 new classes. One which uses GetDC() and one which uses BeginPaint and EndPaint. So, if I need manual updates I use GetDC(). If I need to do something in response to WM_PAINT, I use Begin and EndPaint

Personally, I did not think generating WM_PAINT myself was not a good idea. This I think is a much simpler and correct solution.

Thanks again. Any new ideas /suggestions welcome Smile | :)

Pankaj

Without struggle, there is no progress
GeneralCFlatTabCtrl Pin
alex.barylski22-Aug-02 21:57
alex.barylski22-Aug-02 21:57 
GeneralOverlapped sockets question Pin
Niko Tanghe22-Aug-02 21:50
Niko Tanghe22-Aug-02 21:50 
GeneralRe: Overlapped sockets question Pin
Moak23-Aug-02 3:14
Moak23-Aug-02 3:14 
QuestionWhere did my WM_COMMAND go? Pin
JennyP22-Aug-02 20:10
JennyP22-Aug-02 20:10 
AnswerRe: Where did my WM_COMMAND go? Pin
Tomasz Sowinski22-Aug-02 22:13
Tomasz Sowinski22-Aug-02 22:13 
GeneralRe: Where did my WM_COMMAND go? Pin
JennyP23-Aug-02 5:26
JennyP23-Aug-02 5:26 
GeneralRe: Where did my WM_COMMAND go? Pin
Tomasz Sowinski23-Aug-02 5:26
Tomasz Sowinski23-Aug-02 5:26 
GeneralRe: Where did my WM_COMMAND go? Pin
JennyP23-Aug-02 5:43
JennyP23-Aug-02 5:43 
GeneralRe: Where did my WM_COMMAND go? Pin
Tomasz Sowinski23-Aug-02 5:47
Tomasz Sowinski23-Aug-02 5:47 
QuestionCan I play MP3 from memory using DirectShow? Pin
sonshiro22-Aug-02 19:42
sonshiro22-Aug-02 19:42 
GeneralSlow metafiles on W2K Pin
Anonymous22-Aug-02 19:20
Anonymous22-Aug-02 19:20 
GeneralUpdating NT Log thru VC appl. Pin
abhinarulkar22-Aug-02 19:05
abhinarulkar22-Aug-02 19:05 
GeneralRe: Updating NT Log thru VC appl. Pin
Pavel Klocek22-Aug-02 22:42
Pavel Klocek22-Aug-02 22:42 
GeneralApplication Instance Pin
Prateeti22-Aug-02 18:57
Prateeti22-Aug-02 18:57 
GeneralRe: Application Instance Pin
Chris Losinger22-Aug-02 19:01
professionalChris Losinger22-Aug-02 19:01 
GeneralFirewall Pin
sunwareinc@yahoo.com22-Aug-02 18:20
susssunwareinc@yahoo.com22-Aug-02 18:20 
GeneralRe: Firewall Pin
Philip Fitzsimons22-Aug-02 23:05
Philip Fitzsimons22-Aug-02 23:05 

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.