Click here to Skip to main content
15,907,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 32-bit or 64-bit, that's the question Pin
includeh105-Oct-03 4:29
includeh105-Oct-03 4:29 
GeneralRe: 32-bit or 64-bit, that's the question Pin
Steve S6-Oct-03 1:07
Steve S6-Oct-03 1:07 
GeneralRe: 32-bit or 64-bit, that's the question Pin
Terry O'Nolley5-Oct-03 7:07
Terry O'Nolley5-Oct-03 7:07 
GeneralRe: 32-bit or 64-bit, that's the question Pin
Bo Hunter5-Oct-03 7:38
Bo Hunter5-Oct-03 7:38 
GeneralRe: 32-bit or 64-bit, that's the question Pin
ZoogieZork5-Oct-03 7:23
ZoogieZork5-Oct-03 7:23 
GeneralRe: 32-bit or 64-bit, that's the question Pin
markkuk5-Oct-03 7:00
markkuk5-Oct-03 7:00 
GeneralRe: 32-bit or 64-bit, that's the question Pin
Michael Dunn5-Oct-03 9:11
sitebuilderMichael Dunn5-Oct-03 9:11 
QuestionDefining safe integer types? Pin
Dominik Reichl5-Oct-03 1:26
Dominik Reichl5-Oct-03 1:26 
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 

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.