|
This may be a tall order.
Looking for a VC++ 6.0 MFC IDE template.
Something similar to Altium DXP.
I guess a combination of split view - with tree control in left pane ( inside tab control would be nice) and a tab control in right pane.
There are plenty of piece parts in CodeProject, but I have not seen a complete IDE application here.
Thanks for reading.
Vaclav
|
|
|
|
|
Use AppWizard to create your basic SDI application. In the CFrameWnd -derived class, add a CSplitterWnd member. In the frame's OnCreateClient() method, do something like:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
m_wndSplitter.CreateStatic(this, 1, 2);
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftPaneView), CSize(70, 0), pContext);
m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightPaneView), CSize(0, 0), pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
} You'll then need to use ClassWizard to create two views, one for the left pane and one for the right pane.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi all
hi all
how can i change the CMenu Font..
Thanks in advance
Vishal
|
|
|
|
|
|
Do you want to change font of a foreign application?
|
|
|
|
|
|
hi all
how can i change the CMenu Font.. ... i want to change the font of File , Edit .. etc .. and their submenuitems
Thanks in advance
Vishal
|
|
|
|
|
In a simple way, you cannot do it with CMenu as you'd do with CWnds. Instead, you should have custom drawn menu to define the way it is painting its items.
--
======
Arman
|
|
|
|
|
Hi
Vishal
u have to use LOGFONT and use typeface property of this.write this code in OnDraw() function.Ok....In which company ur working now.
Regards
At
at
|
|
|
|
|
Hi Atul
Thanks for the mail
Is it possible that u can elobrate ur hint a bit more with a code sample ???
Regards
Vishal
|
|
|
|
|
Hello,
can someone show me how to use this function?
I recive only errors
regards
termal
|
|
|
|
|
termal wrote: I recive only errors
Are we supposed to guess what those are?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
i try to use
BOOL CDemoDlg::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
function and i dont know how to do this!
I recive an error in line with message map:
ON_NOTIFY(WM_NOTIFY, IDC_LIST, OnNotify)
Error is:
error C2440: 'type cast' : cannot convert from 'int (__thiscall CTabAll::*)(unsigned int,long,long *)' to 'void (__thiscall CCmdTarget::*)(struct tagNMHDR *,long *)'
Pointers to members have different representations; cannot cast between them
ok, i see i have different parameters, but how to do right!
thanks
termal
|
|
|
|
|
Are you using VS6 or VS200x?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello David,
i use VS6.
regards
temal
|
|
|
|
|
Read the error message. The compiler is expecting the parameter list to be (NMHDR*, LRESULT*) but your function has (WPARAM, LPARAM, LRESULT*) (mentally substitute LRESULT for long , it's a typedef )
|
|
|
|
|
Michael Dunn wrote: The compiler is expecting the parameter list to be (NMHDR*, LRESULT*)...
Why is that, Mike? I'm looking through all of my examples, and it's a three-argument method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
See here: clickety[^] - see the section "ON_NOTIFY: Handling WM_NOTIFY Messages in MFC Applications"
|
|
|
|
|
I guess it changed in MFC 8. It's
BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
on MFC 7.1 (VS2003) as well.
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
That's what struck me as odd. This VS2005 page shows it to take three arguments.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yep - CWnd::OnNotify[^]
I wonder which is true? I only have VS2005 Express so I can't test it
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Arg Now I see it - The OnNotify with 3 arguments is a virtual function that doesn't require
a message map entry. The ones in the link from Michael Dunn are for use with the more specific
ON_NOTIFY message map macros.
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello all,
maybe is that the reason why i dont have any error when in dont make any message map entries!
That is what i dont know before!
I try to use this like in
http://www.codeproject.com/miscctrl/gridctrl.asp[^]
Here is:
BOOL CGridCtrlDemoDlg::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
thanks to all for help!
regards
termal
|
|
|
|
|
Did you get it working?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello,
yes, it works, i only remove the macro ON_NOTIFY(...) and this works...
I didn't know that i dont have to call this macro?
But im now more confused as before, when should i use this OnNotify(..) with 3 paramethers, and when this one with two params?
I like to use my MFC Grid in virtual mode!
regards
termal
|
|
|
|