Contents

Views 11308 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
윈도우 속성중 항상위 속성을 어떻게 주는지 알아보자

이럴때는 SetWindowPos()함수를 사용하면 된다.
SetWindowPos(this->m_hWnd, HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
this->m_hWnd //윈도우 핸들
HWND_TOPMOST //항상위로 하겠다는 define

만약, 이 속성을 다시 없애고 싶다면?
다음과 같이 해주면 된다.
SetWindowPos(this->m_hWnd, HWND_NOTOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);

뭐가 바뀌었을까..
HWND_TOPMOST 를 HWND_NOTOPMOST 로만 바꾸어 주면 된다.

[출처] http://blog.naver.com/jytkm2?Redirect=Log&logNo=120017039974

?

List of Articles
No. Category Subject Author Date Views
441 System/OS [linux] 시스템 데몬 종류와 설명 hooni 2013.04.23 11139
440 Develop [c] 파일입출력, 링크리스트(linked list)를 이용한 주소록(도스용) 소스코드 1 file hooni 2003.04.23 11152
439 Develop [c] 최대공약수, 최소공배수, 서로소 구하기 (펌) hooni 2013.04.23 11160
438 System/OS [doc] TCP/IP 강의 자료 (html) file hooni 2013.04.23 11171
437 Etc [NFC] 단말기와 서버 통신 내용 hooni 2013.11.12 11193
436 Develop [c] 파일입출력 간단한 설명 hooni 2003.04.23 11243
435 Develop [unix] 유닉스 명령에 메타문자 사용 hooni 2014.02.19 11252
434 Develop [switch] 시스코 스위치(catalyst 2950) telnet 설정 hooni 2013.04.23 11271
433 Develop [ios] iOS In App Purchase 코드 부분 샘플 2 hooni 2013.11.20 11283
» Develop [c++] mfc에서 윈도우 항상 위 속성 주기.. hooni 2013.04.23 11308
431 Develop [js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript) hooni 2013.04.23 11333
430 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11342
Board Pagination Prev 1 ... 57 58 59 60 61 62 63 64 65 66 ... 98 Next
/ 98