|
heartsim 님이 쓰신 글 :
: 안녕하세요...
: 예전에 제가 해둔 것중에 관련부분을 첨부해드리겠습니다.^^;
: 음...SetWindowPos함수와 capPreviewScale함수를 잘 이용하시면 될겁니다..
:
: 즐거운 하루 되세요......
:
:
: void __fastcall TMainForm::FormResize(TObject *Sender)/*폼 리사이징 모드*/
: {
: if(sizeflag==true)
: {
: //GetClientRect();//클라이언트 좌표를 얻는다.
:
: SetWindowPos(hWndCap,NULL,0,60,MainForm->ClientRect.Width(),MainForm->ClientRect.Height(),SWP_NOZORDER | SWP_NOMOVE);
: if(!StretchPreView_(true))
: StretchPreView_(true);
:
:
: }
: else
: return;
: }
:
:
: bool __fastcall TMainForm::StretchPreView_(bool cmd)
: {
: if(capPreviewScale(hWndCap,cmd))//1이면 Capture Window stretch된다;flag
: return true;
: else return false;
: }
:
:
|