|
박지훈.임프 님이 쓰신 글 :
: 꼼지락 님이 쓰신 글 :
감샤드립니다~ ^^ 헤헤 ^^
#include <vcl.h>
#pragma hdrstop
#include "ChildWin.h"
#include "Main.h"
#include "NIG.h"
//---------------------------------------------------------------------
#pragma resource "*.dfm"
//---------------------------------------------------------------------
__fastcall TMDIChild::TMDIChild(TComponent *Owner)
: TForm(Owner)
{
if(MainForm->NorO == 'N')
{
ClientWidth = StrToInt(NIGW->ComboBox5->Text);
ClientHeight = StrToInt(NIGW->ComboBox6->Text);
MainForm->ToolButton4->Enabled = true;
MainForm->ToolButton5->Enabled = true;
}
else if(MainForm->NorO == 'O')
{
// ClientHeight = Image1->Height;
// ClientWidth = Image1->Width;
}
}
//---------------------------------------------------------------------
void __fastcall TMDIChild::FormClose(TObject *Sender, TCloseAction &Action)
{
Action = caFree;
MainForm->MENUCOU--;
MainForm->ToolButton4->Enabled = false;
MainForm->ToolButton5->Enabled = false;
}
//---------------------------------------------------------------------
void __fastcall TMDIChild::FormDestroy(TObject *Sender)
{
if(MainForm->MENUCOU == 0)
{
MainForm->Menu = MainForm->MainMenu1;
}
}
//---------------------------------------------------------------------------
void __fastcall TMDIChild::FormCreate(TObject *Sender)
{
MainForm->Edit2->Text = IntToStr(Image1->Picture->Width);
MainForm->Edit3->Text = IntToStr(Image1->Picture->Height);
}
위에 머가 잘못됐죠?
메인폼에 크기를 찍어 봤는데 0 0 찍히더군여..
알려주신데로 (TJPEGImage*)Image1->Picture->Graphic->Width)를 써봤는데..
바루 뻑납니다. 멀 잘못한건지 알수 없는 꼼지락이었습니다.
jpeg.hpp 는 Main.h에 포함시켜놨구.. 여기에두 포함시켜봤는데 영향없는거 같던데여
|