![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mfc
思依_xuni
一边仗剑走天涯,一边油盐酱醋茶
展开
-
MFC使用TreeCtrl控件
在开发过程中TreeCtrl控件的使用也比较广泛,比如我们的资源浏览视图,我这里为大家分享一下我使用TreeCtrl控件的一些技巧。1.我们新建一个Dlg对话框MFC程序2.拖入一个TreeCtrl控件,控件ID修改为IDC_TREE,把控件的Has Lines属性选择为True(这样能让根与根下的Item有连接线),把控件的Has Buttons属性选择为True(这样可以在父项转载 2015-12-16 14:47:39 · 1976 阅读 · 0 评论 -
MFC窗口动态改变其child模态或popup模态
在dialog的虚函数 PreSubclassWindow中设置窗口模式void CMyDlg::PreSubclassWindow(){ long lStyle=GetWindowLong(m_hWnd,GWL_STYLE); //获取风格 if (m_bChildMode==TRUE) //子窗口模式 { lStyle &=~WS_POPU...原创 2018-06-15 15:28:34 · 1635 阅读 · 2 评论 -
MFC窗口风格 WS_style/WS_EX_style(超详细)
窗口风格(Window style)WS_BORDER 有边框窗口WS_CAPTION 必须和WS_BORDER风格配合,但不能与WS_DLGFRAME风格一起使用。指示窗口包含标题要部分。WS_CHILD 说明窗口为子窗口,不能应用于弹出式窗口风格(WS_POPUP)。WS_CHILDWINDOW 同WS_CHILD。WS_CLIPCHILDREN 绘制父...转载 2018-06-27 16:11:11 · 2721 阅读 · 0 评论 -
windows mediaplayer 播放状态(PlayStateChangeOcxPlayer)
https://docs.microsoft.com/zh-cn/windows/desktop/WMP/player-playstatePlayer.playStateThe playState property retrieves a value indicating the state of the Windows Media Player operation.Syntaxplaye...原创 2019-05-30 12:07:33 · 1170 阅读 · 0 评论