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

C / C++ / MFC

 
GeneralRe: How do I draw a border around text? Pin
Chris Losinger14-Jan-03 12:24
professionalChris Losinger14-Jan-03 12:24 
AnswerRe: How do I draw a border around text? Pin
benjymous14-Jan-03 23:02
benjymous14-Jan-03 23:02 
GeneralSHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 9:19
KoftaMan14-Jan-03 9:19 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
Stefan Pedersen14-Jan-03 9:53
Stefan Pedersen14-Jan-03 9:53 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 10:00
KoftaMan14-Jan-03 10:00 
GeneralRe: SHBrowseForFolder in c code gives->'Release' : is not a member of 'IMalloc' Pin
KoftaMan14-Jan-03 10:20
KoftaMan14-Jan-03 10:20 
GeneralNULL pView pointer Pin
ns14-Jan-03 8:05
ns14-Jan-03 8:05 
GeneralRe: NULL pView pointer Pin
Paul Belikian14-Jan-03 9:01
Paul Belikian14-Jan-03 9:01 
Hello,

For MDI you have to do it another way....


<br />
CView * SomeClass::GetActiveView(void)<br />
{<br />
POSITION pos;<br />
CMDIChildWnd *pChild;<br />
CDocument *pDoc;<br />
CView* pView;<br />
CMainFrame *pFrame;<br />
<br />
pFrame = (CMainFrame *) AfxGetMainWnd();<br />
ASSERT(pFrame!=NULL);<br />
pChild = pFrame->MDIGetActive();<br />
ASSERT(pChild != NULL);<br />
pDoc = pChild->GetActiveDocument();<br />
ASSERT(pDoc != NULL);<br />
pos = pDoc->GetFirstViewPosition();<br />
ASSERT(pos != NULL);<br />
pView = pDoc->GetNextView(pos); <br />
return pView;<br />
}<br />


Hope that helps,

Paul...
GeneralRe: NULL pView pointer Pin
ns14-Jan-03 10:09
ns14-Jan-03 10:09 
GeneralRe: NULL pView pointer Pin
ns14-Jan-03 10:11
ns14-Jan-03 10:11 
Generaltried your way but.....??? Pin
ns14-Jan-03 10:19
ns14-Jan-03 10:19 
GeneralRe: tried your way but.....??? Pin
Paul Belikian14-Jan-03 13:00
Paul Belikian14-Jan-03 13:00 
GeneralRe: tried your way but.....??? Pin
ns15-Jan-03 4:45
ns15-Jan-03 4:45 
GeneralFinding the z-order of a window Pin
Chris Sutcliffe14-Jan-03 7:23
sussChris Sutcliffe14-Jan-03 7:23 
GeneralAdding a option to start the program on boot-up.. Pin
RobJones14-Jan-03 7:02
RobJones14-Jan-03 7:02 
GeneralHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Pin
AlexO14-Jan-03 7:31
AlexO14-Jan-03 7:31 
GeneralGetting Unicode key codes into a non-Unicode (MBCS) application Pin
Rob Whapham14-Jan-03 6:46
Rob Whapham14-Jan-03 6:46 
GeneralCustom protocols for WebBrowser controls... Pin
Jamie Hale14-Jan-03 5:26
Jamie Hale14-Jan-03 5:26 
GeneralDynamically adding items to a combo box Pin
lbc14-Jan-03 5:23
lbc14-Jan-03 5:23 
GeneralRe: Dynamically adding items to a combo box Pin
valikac14-Jan-03 9:41
valikac14-Jan-03 9:41 
GeneralRe: Dynamically adding items to a combo box Pin
lbc15-Jan-03 5:16
lbc15-Jan-03 5:16 
GeneralRe: Dynamically adding items to a combo box Pin
valikac15-Jan-03 19:42
valikac15-Jan-03 19:42 
GeneralExample needed of using ActiveX control in NON MFC Win SDK Application Pin
Paul Belikian14-Jan-03 5:22
Paul Belikian14-Jan-03 5:22 
General#import Pin
AlexO14-Jan-03 5:38
AlexO14-Jan-03 5:38 
GeneralRe: #import - Can you expand on that? Pin
Paul Belikian14-Jan-03 5:59
Paul Belikian14-Jan-03 5:59 

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.