1. Windows64位下系统文件提示找不到

    PVOID OldValue = NULL; Wow64DisableWow64FsRedirection(&OldValue); if ( GetFileAttributes(stShortcut.strTarget)!=-1 ) { ShellExecute(NULL, "open", stShortcut.strTarget, stShortcut.strParams, stShortcut.strStartPath, SW_NORMAL); }else{ AfxMessageBox("目标文件不存在:\n" + stShortcut.strTarget); } Wow64EnableWow64FsRedirection(TRUE);

    2016/04/05 program

  2. Windows平台Ring3下DLL注入(HOOK)方法整理汇总

    1.dll劫持 粗略整理了下,可以劫持的dll有(持续更新): lpk.dll、usp10.dll、msimg32.dll、midimap.dll、ksuser.dll、comres.dll、ddraw.dll

    2016/03/21 program

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

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

    2016/03/02 other

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

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

    2015/12/17 duilib

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

    1、显示:CUIProperties::ShowContainerProperty

    2015/11/23 duilib

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

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

    2015/11/02 duilib

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

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

    2015/11/02 duilib

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

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

    2015/10/28 duilib

  9. 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

  10. 关于duilib控件richedit的appendmsg

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

    2015/10/27 duilib