Click here to Skip to main content
15,883,705 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFormView in MDI Pin
anand_dayalans24-Jan-06 5:40
anand_dayalans24-Jan-06 5:40 
GeneralRe: CFormView in MDI Pin
anand_dayalans24-Jan-06 5:49
anand_dayalans24-Jan-06 5:49 
QuestionCreate TabView for IShellPropSheetExt Pin
souso2024-Jan-06 0:12
souso2024-Jan-06 0:12 
QuestionRemote Task manager Pin
SatyaDY24-Jan-06 0:03
SatyaDY24-Jan-06 0:03 
AnswerRe: Remote Task manager Pin
NarasimhuluM24-Jan-06 0:31
NarasimhuluM24-Jan-06 0:31 
AnswerRe: Remote Task manager Pin
Robsori24-Jan-06 0:33
Robsori24-Jan-06 0:33 
GeneralRe: Remote Task manager Pin
SatyaDY24-Jan-06 2:50
SatyaDY24-Jan-06 2:50 
QuestionSetParent Pin
heajinkim23-Jan-06 23:55
heajinkim23-Jan-06 23:55 
I am making an application for Pocket PC using dialog based MFC on embedded VC++.

I try to attach an application like Word, Excel on dialog.
I used "SetParent" to attach the application on dialog.
The code is like this.
::SetParent(dlg.m_hSWnd, m_hWnd);

"dlg.m_hSWnd" is the handle of application that I want to attach on dialog.
"m_hWnd" is the handle of dialog.

Actually, applications are shown on dialog well.
However, it is shown without command bar that the application originally has.
What I hope to know is how to show the command bar.
If you know something about this kind of problem, help me please..

this code is what I tried

CDlgSelect dlg;
if ( IDOK == dlg.DoModal() )
{
::SetParent(dlg.m_hSWnd, m_hWnd);
CMenu *a=CMenu::FromHandle(dlg.m_hSMenu);
SetMenu( a );
::CommandBar_Show(dlg.m_hSWnd, true);
::SetForegroundWindow(dlg.m_hSWnd);
}


-- modified at 5:55 Tuesday 24th January, 2006
AnswerRe: SetParent Pin
domehead24-Jan-06 6:51
domehead24-Jan-06 6:51 
Questionhow to launch a notepad with the supplied information Pin
rampaul23-Jan-06 23:41
rampaul23-Jan-06 23:41 
AnswerRe: how to launch a notepad with the supplied information Pin
toxcct23-Jan-06 23:50
toxcct23-Jan-06 23:50 
AnswerRe: how to launch a notepad with the supplied information Pin
Owner drawn24-Jan-06 0:17
Owner drawn24-Jan-06 0:17 
AnswerRe: how to launch a notepad with the supplied information Pin
Prakash Nadar24-Jan-06 0:30
Prakash Nadar24-Jan-06 0:30 
GeneralRe: how to launch a notepad with the supplied information Pin
rampaul27-Jan-06 2:41
rampaul27-Jan-06 2:41 
QuestionDrag and Drop Pin
Anil_vvs23-Jan-06 23:38
Anil_vvs23-Jan-06 23:38 
QuestionRe: Drag and Drop Pin
Prakash Nadar24-Jan-06 0:37
Prakash Nadar24-Jan-06 0:37 
AnswerRe: Drag and Drop Pin
Anil_vvs24-Jan-06 0:44
Anil_vvs24-Jan-06 0:44 
GeneralRe: Drag and Drop Pin
Prakash Nadar24-Jan-06 1:00
Prakash Nadar24-Jan-06 1:00 
Questionabout virtual function's return type Pin
bobi_zcl23-Jan-06 23:37
bobi_zcl23-Jan-06 23:37 
AnswerRe: about virtual function's return type Pin
toxcct23-Jan-06 23:47
toxcct23-Jan-06 23:47 
AnswerRe: about virtual function's return type Pin
Aamir Butt24-Jan-06 0:05
Aamir Butt24-Jan-06 0:05 
AnswerRe: about virtual function's return type Pin
Taka Muraoka24-Jan-06 4:23
Taka Muraoka24-Jan-06 4:23 
AnswerRe: about virtual function's return type Pin
sunit524-Jan-06 6:56
sunit524-Jan-06 6:56 
GeneralRe: about virtual function's return type Pin
bobi_zcl24-Jan-06 13:33
bobi_zcl24-Jan-06 13:33 
GeneralRe: about virtual function's return type Pin
sunit525-Jan-06 6:25
sunit525-Jan-06 6:25 

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.