C++ 빌더란에 제가 필요한 소스를 찾았는데 어떻게 사용하는지 몰라서요..
그냥 *.pas 에 코딩하면 되는게 아닌가보져? ㅎㅎ
// in Form's header...
void __fastcall WMSysCommand(TMessage &Msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_SYSCOMMAND, TMessage, WMSysCommand)
END_MESSAGE_MAP(TForm)
//-------------------------------------------------------------------
// in Form's source...
void __fastcall TForm1::WMSysCommand(TMessage &Msg)
{
unsignedint sys_code = Msg.WParam & 0xFFF0;
switch (sys_code)
{
case SC_MINIMIZE:
{
// minimize command requested
// TO TRAP: comment out the following two lines,
// and remove the break line.
// Msg.Result = 0;
// return;
break;
}
case SC_MAXIMIZE:
{
// maximize command requested
// TO TRAP: comment out the following two lines,
// and remove the break line.
// Msg.Result = 0;
// return;
break;
}
}
TForm::Dispatch(&Msg);
}
--------------------------------------------------------