when i click ( below the yellow arrow) APP_CHAT_LOG will not show... how to fix this problem?
Here is the code:
Code:
if( g_WndMng.m_pWndChatLog == NULL )
{
g_WndMng.m_pWndChatLog = new CWndChatLog;
if( g_WndMng.m_pWndChatLog )
{
g_WndMng.m_pWndChatLog->Initialize( NULL, APP_CHAT_LOG );
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rect = GetWindowRect(TRUE);
CRect rect2 = g_WndMng.m_pWndChatLog->GetClientRect(TRUE);
int x = 0;
int y = rect.top;
if( (rect.right+rect2.Width()) < rectRoot.right )
x = rect.right;
else
x = (rect.left - rect2.Width() );
CPoint point( x, y );
g_WndMng.m_pWndChatLog->Move( point );
pWndCheck3->SetCheck(false);
}
}
if( g_WndMng.m_pWndChatLog)
{
CWndButton* pWndCheck3 = (CWndButton*)GetDlgItem( WIDC_CHECK3 );
if( pWndCheck3 )
pWndCheck3->SetCheck(g_WndMng.m_pWndChatLog->SetVisible);
g_WndMng.m_pWndChatLog->SetVisible(false);
}






?
