|
Ok to correct this problem:
in 'void CMenuButton::InitButtonStringAndSubMenuHandle(HMENU hMenu, int nIndex)' (MenuBar.cpp)
replace '::GetMenuItemInfo(hMenu, nIndex, TRUE, &info);'
by:
CMenu *pMenu = CMenu::FromHandle(hMenu);
ASSERT(pMenu != NULL);
pMenu->GetMenuString(nIndex, m_strBtn, MF_BYPOSITION);
pMenu->Detach();
//m_strBtn = CString(szText);
We just want to retieve the menu title. You can remove all stuff about MENUITEMINFO.
After, works fine on XP and NT.
regards,
Matt
|
|
|
|
|
I can't link any of the sample projects.
I don't have the guilibd114.lib library.
Where is it?, How do I get it??
|
|
|
|
|
I have the same problem. Have you solved your problem??
Please let me know. If yes, write how ;)
Isa
|
|
|
|
|
NEED HELP!!!
I cant compile any projects, too!!
where can I find the guilibd114.lib??
please help
thx m. beutner
|
|
|
|
|
I need to use only your outlook style class. Do I need to take .Lib or is there any other way /seperate class that can be used seperatly.
Regards
Rizi
|
|
|
|
|
Dear,
Francisco Campos
I am very happy for looking the GuiToolKit.
I would like to insert Logo(any-bitmap image)into the most right-side of the CGuiToolbarWnd-based dockable toolbar on an MFC app using your GuiToolKit.
It is possible???
if possible, Please comment^^;
Best regards
wonseok kang
|
|
|
|
|
I tried to use some dialog templates instead of text items in CGuiVisioFolder.
For example:
#include "stdafx.h"
#include "OptimizeParamDlg.h"
#include "MethodParamDlg.h"
#include "GraphColorDlg.h"
#include "GraphParamDlg.h"
#include "GraphBkDlg.h"
///////////////////////////////////////////////////////////////
// 类 名 : CControlPanel
// 基 类 : CGuiControlBar
// 描 述 :
// 功 能 :
// 历史记录 :
// 使用说明 :
// 作 者 : 赵建军
// 时 间 : 2002年10月12日
// 备 注 :
///////////////////////////////////////////////////////////////
class CControlPanel : public CGuiControlBar
{
protected:
CGuiTabWnd m_Tab;
CImageList m_imgList;
CGuiContainer m_OptContainer;
CGuiVisioFolder m_OptFolder;
COptimizeParamDlg *m_pOptimizeParamDlg;
CMethodParamDlg *m_pMethodParamDlg;
CGuiContainer m_GraphControlContainer;
CGuiVisioFolder m_GraphControl;
CGraphColorDlg *m_pGraphColorDlg;
CGraphParamDlg *m_pGraphParamDlg;
CGraphBkDlg *m_pGraphBkDlg;
public:
CControlPanel();
virtual ~CControlPanel();
//{{AFX_MSG(CMathWorkPanel)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
int CControlPanel::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CGuiControlBar::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_Tab.Create(WS_VISIBLE|WS_CHILD,CRect(0,0,0,0),this,0x9999))
return -1;
if (!m_OptContainer.Create(WS_VISIBLE|WS_CHILD, CRect(0,0,0,0), &m_Tab, 0x9998))
return -1;
if (!m_OptFolder.Create(WS_CHILD|WS_VISIBLE, CRect(0,0,0,0), &m_OptContainer, 0x9997))
return -1;
if (!m_GraphControlContainer.Create(WS_VISIBLE|WS_CHILD, CRect(0,0,0,0), &m_Tab, 0x9996))
return -1;
if (!m_GraphControl.Create(WS_CHILD|WS_VISIBLE, CRect(0,0,0,0), &m_GraphControlContainer, 0x9995))
return -1;
m_pOptimizeParamDlg = new COptimizeParamDlg;
m_pMethodParamDlg = new CMethodParamDlg;
m_pOptimizeParamDlg->Create(IDD_DLG_OPTPARAMETER, &m_OptFolder);
m_pMethodParamDlg->Create(IDD_DLG_METHOD_PARAMETER, &m_OptFolder);
m_OptContainer.AddComponen(&m_OptFolder);
m_OptFolder.SetImageList(IDB_DBPROJECTS,16,2,RGB(255,0,0));
m_OptFolder.AddFolder(m_pOptimizeParamDlg,"优化参数设置",0);
m_OptFolder.AddFolder(m_pMethodParamDlg,"方法参数设置",1);
m_pGraphColorDlg = new CGraphColorDlg;
m_pGraphParamDlg = new CGraphParamDlg;
m_pGraphBkDlg = new CGraphBkDlg;
m_pGraphColorDlg->Create(IDD_DLG_GRAPHCOLOR, &m_GraphControl);
m_pGraphParamDlg->Create(IDD_DLG_GRAPHPARAM, &m_GraphControl);
m_pGraphBkDlg->Create(IDD_DLG_GRAPH_BK, &m_GraphControl);
m_GraphControlContainer.AddComponen(&m_GraphControl);
m_GraphControl.SetImageList(IDB_DBPROJECTS,16,2,RGB(255,0,0));
m_GraphControl.AddFolder(m_pGraphBkDlg,"图形背景设置",0);
m_GraphControl.AddFolder(m_pGraphColorDlg,"图形颜色设置",1);
m_GraphControl.AddFolder(m_pGraphParamDlg,"图形参数设置",2);
m_Tab.Addtab(&m_OptContainer,"优化控制",0);
m_Tab.Addtab(&m_GraphControlContainer,"图形控制",1);
m_Tab.SetImageList(IDB_DBPROJECTS, 16,21, RGB (255, 0, 0));
return 0;
}
Attention:
In order to redraw the dialog, we must change a little of the GuiToolkit code as the following.
void CGuiFolder::OnLButtonUp(UINT nFlags, CPoint point)
{
//Sometimes the child window of the selected folder bar such as dialog template doesn't redraw, So let's invalidate it.(Zjj 2002.11.6)
...
CFolderBar* cit=(CFolderBar*)m_ArrayFolder[m_iSelected];
cit->m_Cwnd->Invalidate();
}
|
|
|
|
|
When I used GetActiveWnd() of the class CGuiTabWnd in a project, an error ocurred. So I changed the code as the following. Am I right?
CWnd* CGuiTabWnd::GetActiveWnd () const
{
return m_Numtabs == -1 ? NULL :
// ((CGuiTab*) m_pArray [m_Numtabs])->pParent;
//I think the active wnd is the selected one.(Zjj 2002.11.7)
((CGuiTab*) m_pArray [m_iSelectTab])->pParent;}
|
|
|
|
|
Hi guys,
I've built a CGuiControlBar, loading inside it some CGuixxx controls of the CGuiToolkit library.
Now I'd like to load inside the CGuiControlBar an MFC child Dialog : does anyone have some ideas how to solve this problem ?
Thank in advance, MM.
|
|
|
|
|
I have repared them and emailed corrected version to bug list
|
|
|
|
|
;PI would like to use it because it looks good, but I can't compile it. Many files such as ExtLib.h, are missing.
Where can I get a complete source code library ?
URGENT
Thanks
Philippe RIO
phr39@wanadoo.fr
|
|
|
|
|
It has some bugs but most of them can be fixed easily, I downloaded it last week and build all samples with Vs.NET, using GuiLib in my projects now, next I will try to fix the last bugs, and Improve the Lib if necessory;P I think GuiToolKit 2.0 will be very great
|
|
|
|
|
Where can I find a complete project with no compile errors ? GuiVisioDemoDoc.h for example. And with a SDIDemo project no damaged...
To put source code for others users is a good thing but it must be clean.
Philippe RIO
|
|
|
|
|
Open Visual C, go to Tools, options, directories, and add the path of Header directory (it is inside source code) in "Include files", "Library Files" and "Source Files"
|
|
|
|
|
javierld wrote:
ForumGuiToolkit MFC Extension
Subject:Re: Is this library complete ?
Sender:javierld
Date:16:37 31 Jul '03
Open Visual C, go to Tools, options, directories, and add the path of Header directory (it is inside source code) in "Include files", "Library Files" and "Source Files"
===============================
Done.
But next we got:
..\Header\GuiFrameWnd.h(30): fatal error C1083: Cannot open include file: 'AFXIMPL.H':
No such file or directory
I found it in "/Program Files/Microsoft Visual Studio .Net/Vc7/atlmfc/src/mfc" but this path is not supposed to be in the path list, isn't?
(btw, after dumb copying this header into ..\Header\ I've got next error:
..\Header\GuiADODB.h(27): fatal error C1083: Cannot open type library file: '\Program Files\Common Files\System\ADO\msado15.dll': No such file or directory
(byt msado15.dll file _is_ there)
may be somebody know url of more simple version?
|
|
|
|
|
When I used CNewMenu(GuiToolKit version) in a Dialog-Based app, the main menu in the dialog is only a set of little xp-blue rects(very small), but the submenus all seems correctly, help me !!
|
|
|
|
|
Probably your main menu is detached from CNewMenu. So the items aren't drawn right. You can see in my samples how it works in dialog-based app on my homepage . By the way my latest version of CNewMenu is 1.15.
Bruno
PS: Can you send the latest version of the fixed GuiToolkit for VC7.0/7.1 to me so I have a look how I can add some directives to integrate CNewMenu in the fixed GuiToolkit without changing CNewMenu for further releases?
|
|
|
|
|
Hi Florian,
how about telling us the compiler errors??
Regards,
Lam
|
|
|
|
|
This is a great Library component!!!
I have to put a vertical and horizontal rulers inside MDITabbed Frame. How I do? I've no idea, because I try to build it but rulers was shown outside MDITabbed Frame!!!
Thank you very much
|
|
|
|
|
|
Thanks for this great library.
I `d like to use this with VC++ NET. When I try to run the demo application built with .NET i have some errors. I think this may be caused by new wersion of MFC library, because with VC++ 6 i have no such problems.
What changes should I make with the source to fix the errors? Is this possible? Will the new wersion be adapted to VC++ NET?
|
|
|
|
|
.NET have some Magic Word, I have found it and repair all samples, werid MicroSoft !!
|
|
|
|
|
I want to draw a white line of PS_DOT style in a view with memory dc. But It's always seems that the line is PS_SOLID style! Why??? Please help me.Thanks.
void CGraphExamView::OnDraw(CDC* pDC)
{
CGraphExamDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
HDC hDC = pDC->m_hDC;
RECT rcClient;
::GetClipBox(hDC, &rcClient);
HDC hMemDC = ::CreateCompatibleDC(hDC);
HBITMAP hMemBitmap = ::CreateCompatibleBitmap(hDC, rcClient.right - rcClient.left,
rcClient.bottom - rcClient.top);
HBITMAP hOldBitmap = (HBITMAP)::SelectObject(hMemDC, hMemBitmap);
::SetWindowOrgEx(hMemDC, rcClient.left, rcClient.top, NULL);
HPEN hPen = ::CreatePen(PS_DOT, 1, RGB(255, 255, 255));
HPEN hOldPen = (HPEN)::SelectObject(hMemDC, hPen);
::MoveToEx(hMemDC, 100, 100, NULL);
::LineTo(hMemDC, 400, 400);
::SelectObject(hMemDC, hOldPen);
::DeleteObject(hPen);
::BitBlt(hDC, rcClient.left, rcClient.top, rcClient.right - rcClient.left,
rcClient.bottom - rcClient.top, hMemDC, rcClient.left, rcClient.top, SRCCOPY);
::SelectObject(hMemDC, hOldBitmap);
::DeleteObject(hMemBitmap);
::DeleteDC(hMemDC);
}
|
|
|
|
|
Is there a way to set the position of the splitter?
By default is in the middle of the window, i wont to
be able to set it to something like 170px,* or 70%/30%
etc.
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
Hi, when I tried to use Visual Studio .Net to generate GuiLib114d.dll in GuiLib project, I got the following error message, how to fix it? Thank you.
c:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include\afxpriv.h(733): error C2011: 'CPushRoutingFrame' : 'class' type redefinition
d:\sample\ExtLib\Header\AFXIMPL.H(145): error C2011: 'CPushRoutingFrame' : 'class' type redefinition
|
|
|
|
|