{
if (NULL != m_pIL->GetSafeHandle())
m_pIL->DeleteImageList();
- if (NULL != m_pIL)
- delete m_pIL;
+ delete m_pIL;
}
void CWindowsManagerDialog::DoDataExchange(CDataExchange* pDX)
BOOL CWindowsManagerDialog::PreTranslateMessage(MSG* pMsg)
{
- // TODO: Add your specialized code here and/or call the base class
-
if ((WM_KEYUP == pMsg->message && VK_CONTROL == pMsg->wParam) ||
(WM_KEYDOWN == pMsg->message && VK_ESCAPE == pMsg->wParam))
{
{
CDialog::OnInitDialog();
- // TODO: Add extra initialization here
-
m_List.SetExtendedStyle(LVS_EX_INFOTIP | LVS_EX_FULLROWSELECT);
if (NULL == m_pIL)
{
CDialog::OnSize(nType, cx, cy);
- // TODO: Add your message handler code here
-
if(NULL != m_List.GetSafeHwnd() && cx > 0 && cy > 0)
m_List.MoveWindow(0, 0, cx, cy);
}
void CWindowsManagerDialog::OnClose()
{
- // TODO: Add your message handler code here and/or call default
-
if (m_bAutoCleanup)
DestroyWindow();
else
void CWindowsManagerDialog::OnOK()
{
- // TODO: Add extra validation here
-
if (m_bAutoCleanup)
DestroyWindow();
else
void CWindowsManagerDialog::OnCancel()
{
- // TODO: Add extra cleanup here
-
if (m_bAutoCleanup)
DestroyWindow();
else
void CWindowsManagerDialog::PostNcDestroy()
{
- // TODO: Add your specialized code here and/or call the base class
CDialog::PostNcDestroy();
if (m_bAutoCleanup)
{
CDialog::OnDestroy();
- // TODO: Add your message handler code here
-
const int nIndex = m_List.GetNextItem(-1, LVNI_SELECTED);
if (nIndex >= 0 && nIndex < m_List.GetItemCount())
::PostMessage(AfxGetMainWnd()->GetSafeHwnd(), WMU_CHILDFRAMEACTIVATE, 0, (LPARAM)m_List.GetItemData(nIndex));
void CWindowsManagerDialog::OnNMCustomdrawListFile(NMHDR* pNMHDR, LRESULT* pResult)
{
-// LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>(pNMHDR);
- // TODO: Add your control notification handler code here
switch (pLVCD->nmcd.dwDrawStage)
{
void CWindowsManagerDialog::OnNMDblclkListFile(NMHDR* pNMHDR, LRESULT* pResult)
{
- LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
- // TODO: Add your control notification handler code here
*pResult = 0;
PostMessage(WM_CLOSE);