ShowMessageCenter
-
ShowMessageCenterC++ Builder/함수 2018. 12. 6. 22:32
#ShowMessageCenter// 현재폼의 가운데에 시스템 메세지 띄우는 함수 코드void __fastcall ShowMessageCenter(String Msg){ static TCanvas *MsgCanvas=NULL; if(MsgCanvas==NULL) { MsgCanvas=new TCanvas; MsgCanvas->Font->Name="MS Sans Serif"; MsgCanvas->Font->Size=9; } if(Screen->ActiveForm) { MsgCanvas->Handle=GetDC(Screen->ActiveForm->Handle); TSize ts=MsgCanvas->TextExtent(Msg); if(ts.cxActiveForm->Left + (Screen->ActiveFor..