Location:
Search - createex
Search list
Description: MFC窗口风格浏览器,而且不用重新编译
CWnd::CreateEx()实现的组合风格,
CWnd::ModifyStyle和ExStyle实现的增加和删除功能-MFC style browser window, and do not recompile CWnd : : CreateEx (), a combination of style, CWnd : : ModifyStyle ExStyle and achieve growth and delete functions
Platform: |
Size: 152146 |
Author: 张海玉 |
Hits:
Description: CTrueColorToolBar m_wndToolBar;
m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_LEFT | CBRS_SIZE_DYNAMIC);//创建并设置工具栏样式
m_wndToolBar.LoadToolBar(IDR_TOOLBAR1);//加载一下普通工具栏
m_wndToolBar.LoadTrueColorToolBar(59, IDB_BITMAP3);//加载真彩工具栏(单个按钮宽度,真彩工具栏位图)
m_wndToolBar.MoveWindow(CRect(10,10,75,60*6+80),TRUE);//设置工具栏摆放位置
Platform: |
Size: 2404 |
Author: mycaochong@gmail.com |
Hits:
Description: ASocket示例 #include "stdafx.h" #include "s.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code ! ON_WM_CREATE() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; ///////////////////////////////////////////////////////////////////////////// // CMainFrame construction/destruction CMainFrame::CMainFrame() { // TODO: add member initialization code here } CMainFrame::~CMainFrame() { } int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
Platform: |
Size: 64331 |
Author: yanghaijun2008 |
Hits:
Description: MFC窗口风格浏览器,而且不用重新编译
CWnd::CreateEx()实现的组合风格,
CWnd::ModifyStyle和ExStyle实现的增加和删除功能-MFC style browser window, and do not recompile CWnd : : CreateEx (), a combination of style, CWnd : : ModifyStyle ExStyle and achieve growth and delete functions
Platform: |
Size: 151552 |
Author: 张海玉 |
Hits: