1. 程序员的幽默段子,你能看懂几个

    程序员吃饺子:一个熬夜加班回到家的程序员,妻子给他端上一碗饺子,他吃了一口之后突然脱口而出一段代码: #include <iostream> using namespace std; int main(void) { char a[50]; cout<<a<<endl; }

    2016/03/02 other

  2. DuiDesigner修改:增加对控件CheckBox属性的保存

    这次修改主要是DuiDesigner工程,duilib工程无须任何修改。

    2015/12/17 duilib

  3. DuiDesigner修改:增加对控件vscrollbar,hscrollbar属性的显示和保存

    1、显示:CUIProperties::ShowContainerProperty

    2015/11/23 duilib

  4. 修复duilib使用的tinyxml的一个BUG

    以RichListRes为例,用修改后的DuiDesigner重新载入xml皮肤配置文件,稍作修改并撤销然后保存,为的是重新保存xml文件,运行RichListRes工程会崩溃。

    2015/11/02 duilib

  5. duilib对CListUI的改造:支持checkbox

    参考:http://blog.csdn.net/tragicguy/article/details/21893065

    2015/11/02 duilib

  6. DuiDesigner修复编辑器不保存CComboUI的textpadding属性的bug

    实际使用发现CComboUI的textpadding为 5 较好,在CComboUI::CComboUI中添加: m_rcTextPadding.left = 5;

    2015/10/28 duilib

  7. CComboUI执行SelectItem无效果排查

    动态跟进CComboUI::SelectItem: ```c bool CComboUI::SelectItem(int iIndex, bool bTakeFocus) { if( m_pWindow != NULL ) m_pWindow->Close(); if( iIndex == m_iCurSel ) return true; int iOldSel = m_iCurSel; if( m_iCurSel >= 0 ) { CControlUI* pControl = static_cast<CControlUI>(m_items[m_iCurSel]); if( !pControl ) return false; IListItemUI pListItem = static_cast<IListItemUI>(pControl->GetInterface(_T(“ListItem”))); if( pListItem != NULL ) pListItem->Select(false); m_iCurSel = -1; } if( iIndex < 0 ) return false; if( m_items.GetSize() == 0 ) return false; if( iIndex >= m_items.GetSize() ) iIndex = m_items.GetSize() - 1; CControlUI pControl = static_cast<CControlUI>(m_items[iIndex]); if( !pControl || !pControl->IsVisible() || !pControl->IsEnabled() ) return false; IListItemUI pListItem = static_cast<IListItemUI*>(pControl->GetInterface(_T(“ListItem”))); if( pListItem == NULL ) return false; m_iCurSel = iIndex; if( m_pWindow != NULL || bTakeFocus ) pControl->SetFocus(); pListItem->Select(true); if( m_pManager != NULL ) m_pManager->SendNotify(this, DUI_MSGTYPE_ITEMSELECT, m_iCurSel, iOldSel); Invalidate();

    2015/10/28 duilib

  8. 关于duilib控件richedit的appendmsg

    ```c if (m_logOutCtrl == NULL) return;

    2015/10/27 duilib

  9. DuiDesigner增加:打开皮肤配置文件所在的文件夹

    经常使用VisualStudio,习惯使用该功能:打开并选择对应的文档,但是DuiDesigner只是打开文件夹,并不选中对应的文档: ```c void CUIDesignerDoc::OnMdiOpenFullPath() { if(m_strPathName.IsEmpty()) { MessageBox(NULL, _T(“请先保存当前文件。”), _T(“提示”), MB_ICONINFORMATION); return; }

    2015/10/27 duilib

  10. DUILIB的消息处理HandleMessage

    duilib还提供了另外一种响应的方法,即消息映射DUI_BEGIN_MESSAGE_MAP,可以将DUI_MSGTYPE_CLICK消息映射到指定的函数(比如OnClick),这和在Notify判断msg.sType是一样的效果,具体请参见duilib的RichListDemo。 先看看下面几段代码: DUI_BEGIN_MESSAGE_MAP(CPage1, CNotifyPump) DUI_ON_MSGTYPE(DUI_MSGTYPE_CLICK,OnClick) DUI_ON_MSGTYPE(DUI_MSGTYPE_SELECTCHANGED,OnSelectChanged) DUI_ON_MSGTYPE(DUI_MSGTYPE_ITEMCLICK,OnItemClick) DUI_END_MESSAGE_MAP()

    2015/10/20 duilib