Skip to content

Commit

Permalink
添加Tab的资源。
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweihan committed Jun 28, 2017
1 parent 5aaf802 commit 8a5c913
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Src/Edislab/Edislab Pro/DlgAddColumn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,29 @@ BOOL CDlgAddColumn::OnInitDialog()

// TODO: 在此添加额外的初始化

InitDisplay();

return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}

void CDlgAddColumn::InitDisplay( void )
{
CWnd* pWnd = GetDlgItem(IDC_TAB_POS);
if (nullptr != pWnd && NULL != pWnd->GetSafeHwnd())
{
pWnd->ShowWindow(SW_HIDE);
//获取位置
CRect rc;
pWnd->GetWindowRect(&rc);
ScreenToClient(&rc);
if (NULL == m_TabWnd)
{
if (FALSE == m_TabWnd.Create(CBCGPTabWnd::STYLE_3D,rc,this,CBaseTabWnd::s_nTabBaseID++
,CBCGPBaseTabWnd::LOCATION_TOP))
{
return;
}
}
}
}
9 changes: 9 additions & 0 deletions Src/Edislab/Edislab Pro/DlgAddColumn.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// CDlgAddColumn 对话框
#include "BaseDialog.h"
#include "ConcreteTabWnd.h"
class CDlgAddColumn : public CBaseDialog
{
DECLARE_DYNAMIC(CDlgAddColumn)
Expand All @@ -20,4 +21,12 @@ class CDlgAddColumn : public CBaseDialog
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();


private:
void InitDisplay(void);

private:
//Tab空间
CConcreteTabWnd m_TabWnd;
};
7 changes: 7 additions & 0 deletions Src/Edislab/Edislab Pro/DlgGridContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "Global.h"
#include "Utility.h"
#include "DlgGridOpt.h"
#include "DlgAddColumn.h"
const int TIMER_ID = 1;
const int TIMER_GAP = 1000;
// CDlgGridContainer 对话框
Expand Down Expand Up @@ -603,6 +604,12 @@ void CDlgGridContainer::OnMenuGridLastRow()
void CDlgGridContainer::OnMenuGridAddColumn()
{
// TODO: 在此添加命令处理程序代码
CDlgAddColumn Dlg;

if (IDOK == Dlg.DoModal())
{

}
}

LRESULT CDlgGridContainer::NotifyGridOption( WPARAM wp,LPARAM lp )
Expand Down
Binary file modified Src/Edislab/Edislab Pro/Edislab Pro.rc
Binary file not shown.
Binary file modified Src/Edislab/Edislab Pro/resource.h
Binary file not shown.

0 comments on commit 8a5c913

Please sign in to comment.