标 题: How do I read a 256 color bitmap file from disk?
发信人: Pacific (无情~~~Nolove), 信区: VisualC
发信站: BBS 水木清华站 (Fri Oct 16 17:45:05 1998)
Currently, MFC does not contain direct support for reading and displaying
DIBs.
or BMPs. However, there are a number of sample applications that illustrate
just how to do this.
The first sample is the MFC sample application DIBLOOK. The MULTDOCS sample
just how to do this.
The first sample is the MFC sample application DIBLOOK. The MULTDOCS sample
uses the same source code provided by DIBLOOK to read and display DIBs and
BMPs.
Two other examples provided with Visual C++ are the SDK samples DIBVIEW and
SHOWDIB.
== maximize MDI Child Window
void CMainFrame::ActivateFrame(int nCmdShow)
{
if (!m_bActivated)
{
m_bActivated = TRUE;
nCmdShow = SW_SHOWMAXIMIZED;
}
CFrameWnd::ActivateFrame(nCmdShow);
}
void CMainFrame::ActivateFrame(int nCmdShow)
{
if (!m_bActivated)
{
m_bActivated = TRUE;
nCmdShow = SW_SHOWMAXIMIZED;
}
CFrameWnd::ActivateFrame(nCmdShow);
}
--
老鸟有交待,中鸟要等待,菜鸟要忍耐。
老鸟级功夫:吹牛、聊天、玩MUD 、发呆。
中鸟级功夫:睡觉、灌水、玩游戏、NT&VC。
菜鸟级功夫:学习、泡妞、玩篮球、And so on
My E-Mail: Nolove@263.net
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: yazhou.bbs@bbs.net.t]
※ 修改:.fzx 于 Aug 9 16:44:13 修改本文.[FROM: heart.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:210.162毫秒