31 lines
768 B
C++
31 lines
768 B
C++
// aboutdlg.cpp : implementation of the CLayerDlg class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "resource.h"
|
|
|
|
#include "layerdlg.h"
|
|
|
|
LRESULT CLayerDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
|
{
|
|
CenterWindow(GetParent());
|
|
DlgResize_Init();
|
|
m_ListBox.Attach(GetDlgItem(IDC_LAYERLIST));
|
|
LONG lCount;
|
|
m_iWhip2DC->get_LayerCount(&lCount);
|
|
for (int i=0;i < lCount;i++)
|
|
{
|
|
CComBSTR lName;
|
|
m_iWhip2DC->get_LayerItem(i, &lName);
|
|
m_ListBox.AddString(CString(lName));
|
|
}
|
|
return TRUE;
|
|
}
|
|
|
|
LRESULT CLayerDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
|
|
{
|
|
EndDialog(wID);
|
|
return 0;
|
|
}
|