|
I am from India. Having 3.5 years of Experience in MS Technologies
|
|
|
|
|
If you're using MFC, I have a complete sample project I put together when someone asked
this before. It uses the technique described by Nitheesh.
If you want it, I'll send it to you.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I dont know he, but I would like to take a view to this sample project if it is possible
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
The sample project zipped can be found here[^]
If you're using VS 2008 and you get the MFC Feature Pack, you can do an app
like this with the wizard and it can have tabbed MDI windows and full docking panes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
at the moment I am not using any version (about 5 months without programming). I want to start another time at home, I'll forget everything if I don't continue in touch with VC++ (I know it was not so much but better than nothing )
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Friends, My code works fine in the debug build but gives
"A structured exception has occurred: Access violation" ... Pls advice... what can be the reason
int ID= GetActiveWindow()->GetWindowContextHelpId(); // can i suspect this statement,
|
|
|
|
|
|
it happnes only in the release build, good in the debug build
|
|
|
|
|
|
See also here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
You've linked to the same article hosted at the author's home page.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
This way he can read the article twice. That's good lecture anyway
|
|
|
|
|
You're right.
Anyway, ask George_George, repetita iuvant
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
hehehehe
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
it is crushing at this statement, pls advice
string abc,xyz;
ShellExecute(0, _T("open"), _T(abc.c_str()), _T(xyz.c_str()), 0,SW_SHOWNORMAL);
|
|
|
|
|
Why the strings are empty?
BTW You cannot use _T() macro that way.
What do you intend to do?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
modified on Friday, April 4, 2008 10:00 AM
|
|
|
|
|
not strings are not empty, it executes the statment sucesfully and then gives
---------------------------
Navigator
---------------------------
A structured exception has occurred: Access violation
---------------------------
OK
---------------------------
after clickinig ok it simply crushes
|
|
|
|
|
it crashes just at the } closing for the function
|
|
|
|
|
Hi,
Do you have any idea, how to set the focus on the NO button (by default will be on YES button) in a AfxMessageBox of type MB_YESNO??
Priya Sundar
modified on Friday, April 4, 2008 8:28 AM
|
|
|
|
|
They hide that info in the documentation:
The following message-box styles are available.
Message_Box Types
<snip>
Message-Box Modality
<snip>
Message-Box Icons
<snip>
Message-Box Default Buttons
MB_DEFBUTTON1 The first button is the default. Note that the first button is always the default unless MB_DEFBUTTON2 or MB_DEFBUTTON3 is specified.
MB_DEFBUTTON2 The second button is the default.
MB_DEFBUTTON3 The third button is the default.
Judy
|
|
|
|
|
JudyL_FL wrote: They hide that info in the documentation
Well played
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes.
AfxMessageBox(_T("foo"), MB_YESNO | MB_DEFBUTTON2);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
|
Can i use dll buil in .Net 2005 in Smart device project i.e. Win CE?
|
|
|
|