16,472
社区成员
发帖
与我相关
我的任务
分享
void CIconPicker::OnLButtonDown(UINT nFlags, CPoint point)
{
if(m_bState) return ;
m_bState=TRUE;
this->SetState(TRUE);
RECT rect;
this->GetWindowRect(&rect);
POINT pt;
pt.x=rect.left;pt.y=rect.bottom;
m_pIconContainer=new CIconContainer;//这句有泄漏 但不知道在哪里释放 CIconContainer是一个容器类
if(m_pIconContainer->Create(pt,this,&m_BitmapArray))
{
m_pIconContainer->ShowWindow(SW_SHOW);
m_pIconContainer->UpdateWindow();
m_pIconContainer->SetFocus();
}
}