真诚询问:

wfowler 2002-04-22 10:00:41
大侠:
我要做一个小软件以练手:一个MDI文档,想在左侧泊放一个类似“Visual Studio”的小窗口,里面有我想放置的若干个图标(不知*.ico能否被加载,还是只能用bmp?),然后实现图标向工作区(由‘新建’产生一个空文档)的拖放。请问,左侧的那个小窗口用什么来实现,它是由一个基于什么基类来创建的?还有我的设想用MDI来实现是否正确?
肯请对此有见解的您给我指点一二,我感激不尽!EMAIL:wfowler@eyou.com
...全文
70 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xpf_2000 2002-04-22
  • 打赏
  • 举报
回复
bcg 很好用的,有专用的Wizzard
xiesl 2002-04-22
  • 打赏
  • 举报
回复
你需要分割窗口,在CFrameWind或CMDIFrame类中加入一个CSplitterWnd对象,在初始化函数中使用CSplitterWnd的CreateStatic创建静态区,然后将你想要的窗口类加入各个区里面,具体的,你可以看一下MSDN中对CSplitterWnd类的说明,这个是最基本的。
以上说的是使用MFC的情况,对于直接使用API,你还要做很多事情的,最好查手册去。
qiuanhong 2002-04-22
  • 打赏
  • 举报
回复
UP
huqiming 2002-04-22
  • 打赏
  • 举报
回复
http://202.112.105.179/vc/contents.asp?item=高级用户界面
名称:DevStudio-alike Dialogbar
quengzi 2002-04-22
  • 打赏
  • 举报
回复
toolbar
or
CMiniFrameWnd
BOOL Create( LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd = NULL, UINT nID = 0);

Return Value

Nonzero if successful; otherwise 0.

Parameters

lpClassName

Points to a null-terminated character string that names the Windows class. The class name can be any name registered with the global AfxRegisterWndClass function. If NULL, the window class will be registered for you by the framework. MFC gives the default class the following styles and attributes:

Sets style bit CS_DBLCLKS, which sends double-click messages to the window procedure when the user double-clicks the mouse.


Sets style bits CS_HREDRAW and CS_VREDRAW, which direct the contents of the client area to be redrawn when the window changes size.


Sets the class cursor to the Windows standard IDC_ARROW.


Sets the class background brush to NULL, so the window will not erase its background.


Sets the class icon to the standard, waving-flag Windows logo icon.


Sets the window to the default size and position, as indicated by Windows.
lpWindowName

Points to a null-terminated character string that contains the window name.

dwStyle

Specifies the window style attributes. These can include standard window styles and one or more of the following special styles:

MFS_MOVEFRAME Allows the mini-frame window to be moved by clicking on any edge of the window, not just the caption.


MFS_4THICKFRAME Disables resizing of the mini-frame window.


MFS_SYNCACTIVE Synchronizes the activation of the mini-frame window to the activation of its parent window.


MFS_THICKFRAME Allows the mini-frame window to be sized as small as the contents of the client area allow.


MFS_BLOCKSYSMENU Disables access to the system menu and the control menu, and converts them to part of the caption (title bar).
See CWnd::Create for a description of possible window style values. The typical combination used for mini-frame windows is WS_POPUP|WS_CAPTION|WS_SYSMENU.

rect

A RECT structure specifying the desired dimensions of the window.

pParentWnd

Points to the parent window. Use NULL for top-level windows.

nID

If the mini-frame window is created as a child window, this is the identifier of the child control; otherwise 0.

cxiaobao 2002-04-22
  • 打赏
  • 举报
回复
bcg or cjlib
quengzi 2002-04-22
  • 打赏
  • 举报
回复
可以用toolbar
或者CMiniFrameWnd
BOOL Create( LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd = NULL, UINT nID = 0);

Return Value

Nonzero if successful; otherwise 0.

Parameters

lpClassName

Points to a null-terminated character string that names the Windows class. The class name can be any name registered with the global AfxRegisterWndClass function. If NULL, the window class will be registered for you by the framework. MFC gives the default class the following styles and attributes:

Sets style bit CS_DBLCLKS, which sends double-click messages to the window procedure when the user double-clicks the mouse.


Sets style bits CS_HREDRAW and CS_VREDRAW, which direct the contents of the client area to be redrawn when the window changes size.


Sets the class cursor to the Windows standard IDC_ARROW.


Sets the class background brush to NULL, so the window will not erase its background.


Sets the class icon to the standard, waving-flag Windows logo icon.


Sets the window to the default size and position, as indicated by Windows.
lpWindowName

Points to a null-terminated character string that contains the window name.

dwStyle

Specifies the window style attributes. These can include standard window styles and one or more of the following special styles:

MFS_MOVEFRAME Allows the mini-frame window to be moved by clicking on any edge of the window, not just the caption.


MFS_4THICKFRAME Disables resizing of the mini-frame window.


MFS_SYNCACTIVE Synchronizes the activation of the mini-frame window to the activation of its parent window.


MFS_THICKFRAME Allows the mini-frame window to be sized as small as the contents of the client area allow.


MFS_BLOCKSYSMENU Disables access to the system menu and the control menu, and converts them to part of the caption (title bar).
See CWnd::Create for a description of possible window style values. The typical combination used for mini-frame windows is WS_POPUP|WS_CAPTION|WS_SYSMENU.

rect

A RECT structure specifying the desired dimensions of the window.

pParentWnd

Points to the parent window. Use NULL for top-level windows.

nID

If the mini-frame window is created as a child window, this is the identifier of the child control; otherwise 0.

huqiming 2002-04-22
  • 打赏
  • 举报
回复
我说的那个,主页上有更新,原先的在debug下编译不能运行,修正后可以了

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧