寻找用C++控制台写一个记事本

来源:百度知道 编辑:UC知道 时间:2024/09/28 11:18:10
寻求用C++写一个记事本
用windows 程序设计写
不用MFC
多谢
我邮箱是 litian52089@yahoo.com.cn

用150分看有没有人写

控制台是写不出来的,但是用windows 程序设计可以写。
新建一个Win32 Application

我这里有一个简单程序,你可以看看

#include <windows.h>
#include <stdio.h>
#include "resource.h"

HINSTANCE hInst;
static RECT rect;

LRESULT CmdRect(HWND);

LRESULT CALLBACK About(
HWND hwnd, // handle to window
UINT uMsg, // message identifier
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);

LRESULT CALLBACK WndProc(
HWND hwnd, // handle to window
UINT uMsg, // message identifier
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);

int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // command line
int nCmdShow