|
말씀해주신대로 했는데, 안되서 생성자안에 메시지를 찍었더니 안뜨더군요..
생성자 쪽 실행이 안되는 것 같습니다.. 뭔가 잘못한 걸까요? 으흑.. 아시면 답변 부탁드립니다..
//////////////// CPP 소스
#include <vcl.h>
#pragma hdrstop
#include "Header.H"
#pragma package(smart_init)
static inline void ValidCtrCheck(TD2DCore *)
{
new TD2DCore();
}
namespace D2d_core
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TD2DCore)};
RegisterComponents("D2D Components", classes, 0);
}
}
__fastcall TD2DCore::TD2DCore() : Classes::TComponent(Owner)
{
GetFullScreenMode = true;
GetFullScreenSize = fs0480;
}
////////////////// H 소스 일부
#ifndef D2D_CoreH
#define D2D_CoreH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <D3d9.H>
#include <D3dx9.H>
#include <mmsystem.h>
#include "Define.H"
enum TFullScreenSize { fs0240, fs0480, fs0600, fs0768, fs0960, fs1024, fs1200, fs0360w, fs0720w, fs1080w, fsMaximum };
class PACKAGE TD2DCore : public Classes::TComponent
{
public:
__fastcall TD2DCore();
__published:
__property bool FullScreenMode = { read = GetFullScreenMode, write = SetFullScreenMode, default = false };
__property TFullScreenSize FullScreenSize = { read = GetFullScreenSize, write = SetFullScreenSize, default = fs0480};
__property TPanel *WindowModeTargetPanel = { read = GetPanel, write = SetPanel };
private:
TFullScreenSize GetFullScreenSize;
void __fastcall SetFullScreenSize (TFullScreenSize pFullScreenSize);
bool GetFullScreenMode;
void __fastcall SetFullScreenMode (bool pFullScreenMode);
|