91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 282KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: C/C++
  • 標簽: VC++??畫板程序??

資源簡介

畫板的實現非常有趣,首先要新建一張HBITMAP來保存原來的繪制內容,然后需要創建一個可拉伸的輸入框,供用戶輸入文字。必要時還得提供UnDo功能,供用戶取消上一次繪制的功能。 利用業余時間,我制作了一個畫板程序,包含了以下幾個功能: 1. 可動態拉伸及移動位置的編輯框,供用戶輸入文字。 2. 可畫直線,圓圈,箭頭,線段及線條。 3. 可使用CTRL+Z組合鍵,撤銷上一次的繪制。 原文博客:http://blog.csdn.net/renstarone/article/details/19901585">畫板的實現非常有趣,首先要新建一張HBITMAP來保存原來的繪制內容,然后需要創建一個可拉伸的輸入框,供用戶輸入文字。必要時還得提供UnDo功能,供用戶取消上一次繪制的功能。 利用業余時間,我制作了一個畫板程序,包含 [更多]

資源截圖

代碼片段和文件信息

//?PaintWindow_Test.cpp?:?main?source?file?for?PaintWindow_Test.exe
//

#include?“stdafx.h“

#include?ame.h>
#include?
#include?

#include?“resource.h“

#include?“aboutdlg.h“
#include?“MainDlg.h“

#include?
#pragma?comment(lib?“gdiplus.lib“)
using?namespace?Gdiplus;

CAppModule?_Module;

int?Run(LPTSTR?/*lpstrCmdLine*/?=?NULL?int?nCmdShow?=?SW_SHOWDEFAULT)
{
CMessageLoop?theLoop;
_Module.AddMessageLoop(&theLoop);

CMainDlg?dlgMain;

if(dlgMain.Create(NULL)?==?NULL)
{
ATLTRACE(_T(“Main?dialog?creation?failed!\n“));
return?0;
}

dlgMain.ShowWindow(nCmdShow);

int?nRet?=?theLoop.Run();

_Module.RemoveMessageLoop();
return?nRet;
}

int?WINAPI?_tWinMain(HINSTANCE?hInstance?HINSTANCE?/*hPrevInstance*/?LPTSTR?lpstrCmdLine?int?nCmdShow)
{
//HRESULT?hRes?=?::CoInitialize(NULL);
//?If?you?are?running?on?NT?4.0?or?higher?you?can?use?the?following?call?instead?to?
//?make?the?EXE?free?threaded.?This?means?that?calls?come?in?on?a?random?RPC?thread.
HRESULT?hRes?=?::CoInitializeEx(NULL?COINIT_MULTITHREADED);
ATLASSERT(SUCCEEDED(hRes));

GdiplusStartupInput?gdiplusStartupInput;
ULONG_PTR?gdiplusToken;
GdiplusStartup(&gdiplusToken?&gdiplusStartupInput?NULL);

//?this?resolves?ATL?window?thunking?problem?when?Microsoft?layer?for?Unicode?(MSLU)?is?used
::DefWindowProc(NULL?0?0?0L);

AtlInitCommonControls(ICC_BAR_CLASSES); //?add?flags?to?support?other?controls

hRes?=?_Module.Init(NULL?hInstance);
ATLASSERT(SUCCEEDED(hRes));

int?nRet?=?Run(lpstrCmdLine?nCmdShow);

_Module.Term();
::CoUninitialize();

GdiplusShutdown(gdiplusToken);

return?nRet;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-02-25?11:02??PaintWindow_Test\
?????目錄???????????0??2014-02-25?11:02??PaintWindow_Test\PaintWindow_Test\
?????文件?????????914??2013-11-06?10:22??PaintWindow_Test\PaintWindow_Test.sln
?????文件??????132096??2014-02-25?11:02??PaintWindow_Test\PaintWindow_Test.suo
?????文件????????1048??2013-11-06?10:22??PaintWindow_Test\PaintWindow_Test\AboutDlg.h
?????文件????????7698??2014-02-14?11:04??PaintWindow_Test\PaintWindow_Test\BitmapEdit.h
?????文件???????11887??2013-11-19?11:44??PaintWindow_Test\PaintWindow_Test\Canvas.h
?????文件????????6580??2014-02-14?11:07??PaintWindow_Test\PaintWindow_Test\CanvasWnd.h
?????文件???????12179??2013-11-11?09:21??PaintWindow_Test\PaintWindow_Test\CustomButton.h
?????文件????????1929??2013-10-31?10:12??PaintWindow_Test\PaintWindow_Test\CustomFont.h
?????文件????????2700??2013-11-06?11:10??PaintWindow_Test\PaintWindow_Test\GDIHelper.h
?????文件???????10659??2013-11-14?08:44??PaintWindow_Test\PaintWindow_Test\GdiplusHelper.h
?????文件????????6576??2014-02-25?09:46??PaintWindow_Test\PaintWindow_Test\MainDlg.h
?????文件???????30588??2014-02-25?09:23??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.aps
?????文件????????1709??2013-11-13?14:08??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.cpp
?????文件??????186880??2014-02-25?11:01??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.exe
?????文件??????????23??2013-11-06?10:22??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.h
?????文件????????8565??2014-02-25?09:23??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.rc
?????文件????????5822??2013-11-14?15:11??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.vcproj
?????文件????????1405??2014-02-25?11:02??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.vcproj.MING.Administrator.user
?????文件????????1407??2013-11-20?19:39??PaintWindow_Test\PaintWindow_Test\PaintWindow_Test.vcproj.PC111.Administrator.user
?????目錄???????????0??2014-02-25?11:02??PaintWindow_Test\PaintWindow_Test\Release\
?????文件??????186880??2014-02-25?11:01??PaintWindow_Test\PaintWindow_Test\Release\PaintWindow_Test.exe
?????目錄???????????0??2013-11-06?16:31??PaintWindow_Test\PaintWindow_Test\res\
?????文件???????15398??2014-02-25?09:37??PaintWindow_Test\PaintWindow_Test\ResizeCtrl.h
?????文件?????????832??2014-02-25?09:20??PaintWindow_Test\PaintWindow_Test\resource.h
?????文件???????12514??2013-11-06?16:31??PaintWindow_Test\PaintWindow_Test\res\BTN_GREEN.PNG
?????文件????????1078??2008-02-07?03:17??PaintWindow_Test\PaintWindow_Test\res\PaintWindow_Test.ico
?????文件?????????293??2013-11-06?10:22??PaintWindow_Test\PaintWindow_Test\stdafx.cpp
?????文件????????1465??2013-11-06?10:25??PaintWindow_Test\PaintWindow_Test\stdafx.h

評論

共有 條評論