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

  • 大小: 70KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-20
  • 語言: C/C++
  • 標(biāo)簽: mfc??

資源簡介

實現(xiàn)一個可在父窗口中自由拖動的按鈕(CMovableButton),并且不允許拖出父窗口(這樣就拖不回來了)。

資源截圖

代碼片段和文件信息


//?MFCtest.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“MFCtest.h“
#include?“MFCtestDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif


//?CMFCtestApp

BEGIN_MESSAGE_MAP(CMFCtestApp?CWinAppEx)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()


//?CMFCtestApp?construction

CMFCtestApp::CMFCtestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}


//?The?one?and?only?CMFCtestApp?object

CMFCtestApp?theApp;


//?CMFCtestApp?initialization

BOOL?CMFCtestApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinAppEx::InitInstance();

AfxEnableControlContainer();

//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//?of?your?final?executable?you?should?remove?from?the?following
//?the?specific?initialization?routines?you?do?not?need
//?Change?the?registry?key?under?which?our?settings?are?stored
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));

CMFCtestDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}

//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2103??2013-12-03?20:30??MFCtest\MFCtest\MFCtest.cpp

?????文件????????514??2013-12-03?20:30??MFCtest\MFCtest\MFCtest.h

?????文件???????4784??2014-01-17?14:21??MFCtest\MFCtest\MFCtest.rc

?????文件???????5578??2014-01-17?09:58??MFCtest\MFCtest\MFCtest.vcproj

?????文件???????2005??2014-01-17?14:21??MFCtest\MFCtest\MFCtestDlg.cpp

?????文件????????486??2014-01-17?15:05??MFCtest\MFCtest\MFCtestDlg.h

?????文件???????2021??2014-01-17?15:40??MFCtest\MFCtest\MovableButton.cpp

?????文件????????453??2014-01-17?15:05??MFCtest\MFCtest\MovableButton.h

?????文件??????67777??2007-11-28?16:21??MFCtest\MFCtest\res\MFCtest.ico

?????文件????????398??2013-12-03?20:30??MFCtest\MFCtest\res\MFCtest.rc2

?????文件????????541??2014-01-17?09:57??MFCtest\MFCtest\resource.h

?????文件????????209??2013-12-03?20:30??MFCtest\MFCtest\stdafx.cpp

?????文件???????2029??2013-12-03?20:30??MFCtest\MFCtest\stdafx.h

?????文件???????1432??2013-12-03?20:30??MFCtest\MFCtest\targetver.h

?????文件????????887??2013-12-03?20:30??MFCtest\MFCtest.sln

????..A..H.?????42496??2014-01-17?15:42??MFCtest\MFCtest.suo

?????目錄??????????0??2014-01-17?15:42??MFCtest\MFCtest\res

?????目錄??????????0??2014-01-17?15:42??MFCtest\MFCtest

?????目錄??????????0??2014-01-17?15:42??MFCtest

-----------?---------??----------?-----??----

???????????????133713????????????????????19


評論

共有 條評論