MyPaint/MyPaint.cpp
2022-02-24 06:02:44 +03:00

24 lines
453 B
C++

#include "MyPaint.h"
#include "CPaintFrame.h"
#include "resource.h"
CMyPaint myApp;
BOOL CMyPaint::InitInstance() {
CWinApp::InitInstance();
CPaintFrame* pFrame = new CPaintFrame();
if (!pFrame)
return FALSE;
m_pMainWnd = pFrame;
CString pFrameClass = AfxRegisterWndClass(NULL, nullptr, nullptr, LoadIcon(IDI_PENCIL));
pFrame->Create(pFrameClass, L"My paint :D");
pFrame->ShowWindow(m_nCmdShow);
pFrame->UpdateWindow();
return TRUE;
}