1. 显示与隐藏标题栏
//隐藏titlebar 【程序编程相关:程序备忘录:官子之三-邮件轰炸(2004】
方法一:使用api实现 【推荐阅读:Java设计模式之Factory】
::setwindowlong(this->m_hwnd, gwl_style, lstyle & ~ws_caption); 【扩展信息:VB打造超酷个性化菜单(一)】long lstyle = ::getwindowlong(this->m_hwnd, gwl_style);::setwindowpos(this->m_hwnd, null, 0, 0, 0, 0,swp_nosize | swp_nomove | swp_nozorder | swp_noactivate | swp_framechanged);// 显示titlebar
::setwindowlong(this->m_hwnd, gwl_style, lstyle | ws_caption);::setwindowpos(this->m_hwnd, null, 0, 0, 0, 0,??swp_nosize | swp_nomove | swp_nozorder | swp_noactivate | swp_framechanged);方法二:使用cwnd成员函数modifystyle实现// 隐藏titlebarmodifystyle(ws_caption, 0, swp_framechanged);// 显示titlebarmodifystyle(0, ws_caption, swp_framechanged);2 . 怎么用sendmessage()来发送消息来清空它的内容??
hwnd heditwnd=getdlgitem(idc_edit1)->getsafehwnd();::sendmessage(heditwnd,wm_settext,(wparam)0,(lparam)"");... 下一页