Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tree View gets grayed on Minimize-maximize Pin
Binayak19-Dec-03 12:33
Binayak19-Dec-03 12:33 
QuestionRightClick | Open with | select application to open ...how? Pin
Binayak18-Dec-03 12:31
Binayak18-Dec-03 12:31 
AnswerRe: RightClick | Open with | select application to open ...how? Pin
l a u r e n18-Dec-03 14:34
l a u r e n18-Dec-03 14:34 
GeneralMFC Grid Pin
ldevriendt18-Dec-03 12:18
ldevriendt18-Dec-03 12:18 
Generalpointers to doc class from other classes Pin
Qbus18-Dec-03 12:13
Qbus18-Dec-03 12:13 
GeneralRe: pointers to doc class from other classes Pin
Christian Graus18-Dec-03 12:26
protectorChristian Graus18-Dec-03 12:26 
GeneralRe: pointers to doc class from other classes Pin
Peter Molnar18-Dec-03 14:31
Peter Molnar18-Dec-03 14:31 
GeneralRe: pointers to doc class from other classes Pin
Michael P Butler18-Dec-03 20:51
Michael P Butler18-Dec-03 20:51 
Qbus wrote:
I know how to get a pointer form View class to doc class.

If it is a standard MFC Wizard generated view then you can use the GetDocument() function in your view class.


Qbus wrote:
If not can you get a pointer to app class from doc class?

You can use AfxGetApp() and cast the returned value to your class

CMyApp* pApp = (CMyApp*) AfxGetApp();



Michael

Snow is lying on the ground, and in the air the sleigh bells sound,
The frosted patterned window panes, it's British summer time again.
No, it's not, It's Christmas - Santa Claus in on the Dole (Spitting Image 1986)

GeneralGDI+ Offensive Flickering Pin
Steven M Hunt18-Dec-03 12:06
Steven M Hunt18-Dec-03 12:06 
GeneralRe: GDI+ Offensive Flickering Pin
John R. Shaw18-Dec-03 16:44
John R. Shaw18-Dec-03 16:44 
QuestionHow to make multiple socket connection for a single port/address Pin
tqdo18-Dec-03 10:56
tqdo18-Dec-03 10:56 
AnswerRe: How to make multiple socket connection for a single port/address Pin
Johnny ²18-Dec-03 12:32
Johnny ²18-Dec-03 12:32 
AnswerRe: How to make multiple socket connection for a single port/address Pin
Peter Weyzen18-Dec-03 13:49
Peter Weyzen18-Dec-03 13:49 
AnswerRe: How to make multiple socket connection for a single port/address Pin
ashxly18-Dec-03 14:45
ashxly18-Dec-03 14:45 
QuestionHow to show a modal dialog in multithread app? Pin
LaoWei18-Dec-03 10:24
LaoWei18-Dec-03 10:24 
AnswerRe: How to show a modal dialog in multithread app? Pin
Robert Kuster18-Dec-03 11:03
Robert Kuster18-Dec-03 11:03 
GeneralNumber of files in a directory Pin
Madmaximus18-Dec-03 10:04
Madmaximus18-Dec-03 10:04 
GeneralRe: Number of files in a directory Pin
greba18-Dec-03 11:50
greba18-Dec-03 11:50 
GeneralRe: Number of files in a directory Pin
Madmaximus18-Dec-03 11:59
Madmaximus18-Dec-03 11:59 
GeneralRe: Number of files in a directory Pin
greba18-Dec-03 12:23
greba18-Dec-03 12:23 
GeneralRe: Number of files in a directory Pin
Madmaximus19-Dec-03 2:29
Madmaximus19-Dec-03 2:29 
GeneralRe: Number of files in a directory Pin
greba19-Dec-03 8:21
greba19-Dec-03 8:21 
GeneralCSliderCtrl Range Setting Trouble Pin
Justin Cooke18-Dec-03 9:20
Justin Cooke18-Dec-03 9:20 
GeneralRe: CSliderCtrl Range Setting Trouble Pin
Justin Cooke18-Dec-03 10:12
Justin Cooke18-Dec-03 10:12 
Generaldatabase probelm Pin
karteek18-Dec-03 7:09
karteek18-Dec-03 7:09 

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.