Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: set size of main application window at startup Pin
elephantstar21-Apr-05 9:55
elephantstar21-Apr-05 9:55 
GeneralRe: set size of main application window at startup Pin
heman15421-Apr-05 17:37
heman15421-Apr-05 17:37 
GeneralRe: set size of main application window at startup Pin
ThatsAlok21-Apr-05 18:42
ThatsAlok21-Apr-05 18:42 
GeneralUDP socket problem Pin
Andrey Del Pozo21-Apr-05 7:33
Andrey Del Pozo21-Apr-05 7:33 
GeneralRe: UDP socket problem Pin
CodeBeetle23-Apr-05 1:48
CodeBeetle23-Apr-05 1:48 
Generalaccess MFC view from modeless dialog Pin
crystalButterfly21-Apr-05 7:06
crystalButterfly21-Apr-05 7:06 
GeneralRe: access MFC view from modeless dialog Pin
Chris Losinger21-Apr-05 7:39
professionalChris Losinger21-Apr-05 7:39 
GeneralRe: access MFC view from modeless dialog Pin
Andrey Del Pozo21-Apr-05 7:44
Andrey Del Pozo21-Apr-05 7:44 
depends if you hace SDI or MDI.
if is MDI:
// this is from MSDN Library
CMDIFrameWnd *pFrame =
(CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;

// Get the active MDI child window.
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();

// Get the active view attached to the active MDI child
// window.
CMyView *pView = (CMyView *) pChild->GetActiveView();


if is SDI:

CFrameWnd* pMainFrm = (CFrameWnd*)AfxGetMainWnd();
CMyView *pView = (CMyView *)pMainFrm->GetActiveView();

Once you have pView you can call functions or send messages.


"I don't want to achieve immortality through my work... I want to achieve it through not dying."
Woody Allen
GeneralRe: access MFC view from modeless dialog Pin
crystalButterfly21-Apr-05 8:12
crystalButterfly21-Apr-05 8:12 
GeneralRe: access MFC view from modeless dialog Pin
Ravi Bhavnani21-Apr-05 18:04
professionalRavi Bhavnani21-Apr-05 18:04 
GeneralDLL Pin
topeakinniyi21-Apr-05 7:04
topeakinniyi21-Apr-05 7:04 
GeneralRe: DLL Pin
cpm221-Apr-05 7:40
cpm221-Apr-05 7:40 
GeneralRe: DLL Pin
topeakinniyi21-Apr-05 7:47
topeakinniyi21-Apr-05 7:47 
GeneralRe: DLL Pin
AnTri21-Apr-05 9:48
AnTri21-Apr-05 9:48 
Generalwrap an activex like listview Pin
Tamas Karoly21-Apr-05 6:37
Tamas Karoly21-Apr-05 6:37 
QuestionHow to copy files from computer to another without clint program? Pin
Member 125596621-Apr-05 6:33
Member 125596621-Apr-05 6:33 
AnswerRe: How to copy files from computer to another without clint program? Pin
cpm221-Apr-05 7:42
cpm221-Apr-05 7:42 
GeneralRe: How to copy files from computer to another without clint program? Pin
Member 125596621-Apr-05 8:20
Member 125596621-Apr-05 8:20 
GeneralRe: How to copy files from computer to another without clint program? Pin
Steve Mayfield21-Apr-05 9:10
Steve Mayfield21-Apr-05 9:10 
GeneralPrevent resizing main-window Pin
AnTri21-Apr-05 5:50
AnTri21-Apr-05 5:50 
GeneralRe: Prevent resizing main-window Pin
Ravi Bhavnani21-Apr-05 6:06
professionalRavi Bhavnani21-Apr-05 6:06 
GeneralRe: Prevent resizing main-window Pin
AnTri21-Apr-05 8:22
AnTri21-Apr-05 8:22 
GeneralRe: Prevent resizing main-window Pin
Michael Dunn21-Apr-05 12:03
sitebuilderMichael Dunn21-Apr-05 12:03 
GeneralWindow's user Pin
densitet21-Apr-05 5:11
densitet21-Apr-05 5:11 
GeneralRe: Window's user Pin
ThatsAlok24-Apr-05 19:14
ThatsAlok24-Apr-05 19:14 

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.