Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Defining safe integer types? Pin
includeh105-Oct-03 4:08
includeh105-Oct-03 4:08 
AnswerRe: Defining safe integer types? Pin
Michael Dunn5-Oct-03 9:17
sitebuilderMichael Dunn5-Oct-03 9:17 
AnswerRe: Defining safe integer types? Pin
ZoogieZork5-Oct-03 9:26
ZoogieZork5-Oct-03 9:26 
GeneralI need high lights in Printing invoice(bell) Pin
Anonymous4-Oct-03 22:16
Anonymous4-Oct-03 22:16 
Generalneed advice on drawing code! Pin
coda_x4-Oct-03 21:05
coda_x4-Oct-03 21:05 
GeneralRe: need advice on drawing code! Pin
LunaticFringe4-Oct-03 22:05
LunaticFringe4-Oct-03 22:05 
GeneralRe: need advice on drawing code! Pin
coda_x4-Oct-03 23:37
coda_x4-Oct-03 23:37 
GeneralRe: need advice on drawing code! Pin
LunaticFringe5-Oct-03 3:55
LunaticFringe5-Oct-03 3:55 
If you need a pointer to the view, just create a member variable of that type in the dialog class, and initialize it after creating, but before showing, the dialog. For instance, in the dialog header, you'd have something like

CMyView* m_ptrOwnerView;

In the function that creates the dialog,

CMyDialog md;
md.m_ptrOwnerView = this;
md.ShowModal();

However, if you're trying to draw into the view in response to the WM_PAINT message received by the dialog, you have a bit of a problem. You need to draw in response to the WM_PAINT received by the view, not that recieved by the dialog. The WM_PAINT messages sent to the dialog by the OS are not related to view. Re-think your architecture.
GeneralRe: need advice on drawing code! Pin
coda_x6-Oct-03 1:34
coda_x6-Oct-03 1:34 
GeneralQuestion about several popular sleep methods. Pin
George24-Oct-03 19:46
George24-Oct-03 19:46 
GeneralRe: Question about several popular sleep methods. Pin
Blake Coverett4-Oct-03 20:53
Blake Coverett4-Oct-03 20:53 
GeneralRe: Question about several popular sleep methods. Pin
George24-Oct-03 21:27
George24-Oct-03 21:27 
GeneralRe: Question about several popular sleep methods. Pin
Blake Coverett4-Oct-03 21:53
Blake Coverett4-Oct-03 21:53 
GeneralRe: Question about several popular sleep methods. Pin
George24-Oct-03 22:00
George24-Oct-03 22:00 
GeneralRe: Question about several popular sleep methods. Pin
Johnny ²6-Oct-03 1:14
Johnny ²6-Oct-03 1:14 
GeneralRe: Question about several popular sleep methods. Pin
George26-Oct-03 16:39
George26-Oct-03 16:39 
Generalerror Pin
R. Thomas4-Oct-03 18:56
R. Thomas4-Oct-03 18:56 
GeneralRe: error Pin
Dominik Reichl4-Oct-03 23:02
Dominik Reichl4-Oct-03 23:02 
GeneralRe: error Pin
R. Thomas5-Oct-03 0:03
R. Thomas5-Oct-03 0:03 
QuestionCalculating window size based on bitmap and titlebar/border? Pin
Kayembi4-Oct-03 15:53
Kayembi4-Oct-03 15:53 
AnswerRe: Calculating window size based on bitmap and titlebar/border? Pin
Michael Dunn4-Oct-03 16:53
sitebuilderMichael Dunn4-Oct-03 16:53 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
PJ Arends4-Oct-03 16:57
professionalPJ Arends4-Oct-03 16:57 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
Michael Dunn4-Oct-03 17:08
sitebuilderMichael Dunn4-Oct-03 17:08 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
Kayembi5-Oct-03 3:43
Kayembi5-Oct-03 3:43 
AnswerRe: Calculating window size based on bitmap and titlebar/border? Pin
PJ Arends4-Oct-03 16:55
professionalPJ Arends4-Oct-03 16:55 

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.