Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Tomasso7-Jan-02 7:10
Tomasso7-Jan-02 7:10 
Generalaccess CRecordSet from another class Pin
jafrazee28-Dec-01 2:43
jafrazee28-Dec-01 2:43 
GeneralRe: access CRecordSet from another class Pin
Carlos Antollini28-Dec-01 3:05
Carlos Antollini28-Dec-01 3:05 
GeneralRe: access CRecordSet from another class Pin
jafrazee28-Dec-01 3:46
jafrazee28-Dec-01 3:46 
GeneralRe: access CRecordSet from another class Pin
Carlos Antollini28-Dec-01 5:07
Carlos Antollini28-Dec-01 5:07 
Questionhow can i DRAW in CVIEW:OnInitialUpdate() function? Pin
AnonymousBabe@usa.net28-Dec-01 2:08
AnonymousBabe@usa.net28-Dec-01 2:08 
AnswerRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
AnonymousBabe@usa.net28-Dec-01 6:07
AnonymousBabe@usa.net28-Dec-01 6:07 
AnswerRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
Shog928-Dec-01 8:58
sitebuilderShog928-Dec-01 8:58 
You can draw, provided you can get a DC;
// ...
CClientDC dc(this);
// draw stuff
// ...

However, there's a good chance that the window is not visible yet, so drawing into it will not be very useful. A better idea is to use the class as it was intended; initialize any data necessary for drawing in OnInitialUpdate(), updated it in OnUpdate(), and draw it in OnDraw(). OnDraw() will be called when the window is shown and first needs to be updated, so if you place your drawing code there, the view will act as desired.


i ain't happy, i'm feeling glad; i got sunshine in a bag; i'm useless, but not for long; the future is coming on...
gorillaz, clint eastwood

GeneralRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
AnonymousBabe@usa.net28-Dec-01 14:23
AnonymousBabe@usa.net28-Dec-01 14:23 
GeneralRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
Shog929-Dec-01 13:14
sitebuilderShog929-Dec-01 13:14 
Generalcsv file Pin
Sonu Kapoor28-Dec-01 2:06
Sonu Kapoor28-Dec-01 2:06 
Generalerror message Pin
28-Dec-01 0:42
suss28-Dec-01 0:42 
GeneralRe: error message Pin
Sergei Yevseyev28-Dec-01 4:24
Sergei Yevseyev28-Dec-01 4:24 
Generalerror message Pin
28-Dec-01 0:41
suss28-Dec-01 0:41 
QuestionIsn't there native support for PNG in Windows? Pin
Nish Nishant27-Dec-01 21:56
sitebuilderNish Nishant27-Dec-01 21:56 
AnswerRe: Isn't there native support for PNG in Windows? Pin
Mike Nordell27-Dec-01 23:02
Mike Nordell27-Dec-01 23:02 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Nish Nishant27-Dec-01 23:14
sitebuilderNish Nishant27-Dec-01 23:14 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Mike Nordell27-Dec-01 23:22
Mike Nordell27-Dec-01 23:22 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Nish Nishant27-Dec-01 23:41
sitebuilderNish Nishant27-Dec-01 23:41 
GeneralRe: Isn't there native support for PNG in Windows? Pin
markkuk27-Dec-01 23:24
markkuk27-Dec-01 23:24 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Nish Nishant27-Dec-01 23:42
sitebuilderNish Nishant27-Dec-01 23:42 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Christian Graus28-Dec-01 0:33
protectorChristian Graus28-Dec-01 0:33 
AnswerRe: Isn't there native support for PNG in Windows? Pin
James R. Twine28-Dec-01 7:15
James R. Twine28-Dec-01 7:15 
GeneralRe: Isn't there native support for PNG in Windows? Pin
Chris Losinger28-Dec-01 9:16
professionalChris Losinger28-Dec-01 9:16 
GeneralRe: Isn't there native support for PNG in Windows? Pin
James R. Twine28-Dec-01 16:04
James R. Twine28-Dec-01 16:04 

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.