Files
Slnkdwf/Viewer/LayerDlg.cpp
Jos Groot Lipman 80d0142c23 SLNKDWF 2.00
svn path=/Slnkdwf/trunk/; revision=12481
2007-08-01 13:42:28 +00:00

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;
}