목록movewindow (2)
바람이 머문 언덕
기본적으로 제공해주는 창태 창을 이용해서 윈도우를 이동 시키면 편하지만 상태 창을 위도우에 넣지 않고 윈도우를 만들어야 할 때가 있다. 그 때 윈도우를 이동 시키려고 하면 MoveWindow라는 api 함수를 이용해야 한다. MoveWindow 함수 사용을 좀 더 편하게 하기 위해서 앞에서 만든 클래스를 이용해서 예제를 만들었다. 실행 파일과 소스는 아래에 첨부 했고 여기서는 간단한 이용 예만 적어 보았습니다. #include class movewindow { public: movewindow(); ~movewindow(); void bottonup(); void move(int x,int y); void bottondown(int x, int y,HWND h); private: bool ifla; HW..
윈도우 창태바가 없는 윈도우에서 윈도우를 이동 시키기 위해서 api 함수를 이용해서 만든 클레스 입니다. #include class movewindow { public: movewindow(); ~movewindow(); void bottonup(); void move(int x,int y); void bottondown(int x, int y,HWND h); private: bool ifla; HWND hwnd; int poxy, poxx; }; movewindow::movewindow() { hwnd=NULL; ifla=FALSE; } movewindow::~movewindow() { } void movewindow::bottondown(int x, int y,HWND h) { if(!ifla) { ..