Contents

Views 12454 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

?

  1. [c++] WinSock2.0 채팅 프로그램 ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views9406
    Read More
  2. [c++] Window API(MFC) 오목 게임

    Date2003.04.23 CategoryDevelop Byhooni Views11148
    Read More
  3. [c++] Win32API를 이용한 ExitWindowsEx 사용한 예제코드

    Date2013.04.23 CategoryDevelop Byhooni Views9206
    Read More
  4. [c++] Win32 API 기본 출력인 MessageBox() 함수 사용 예제..

    Date2013.04.23 CategoryDevelop Byhooni Views13516
    Read More
  5. [c++] template 사용예

    Date2003.04.23 CategoryDevelop Byhooni Views7957
    Read More
  6. [c++] String Tokenizer (나중에 c 코드로 변경해서 사용할 것)

    Date2013.04.23 CategoryDevelop Byhooni Views12693
    Read More
  7. [c++] SetWindowPos함수를 이용한 크기조절 예제

    Date2013.04.23 CategoryDevelop Byhooni Views12467
    Read More
  8. [c++] RSA Sample 4 CPP

    Date2013.04.23 CategoryDevelop Byhooni Views12705
    Read More
  9. [c++] p.58 연습문제 2번

    Date2003.04.23 CategoryDevelop Byhooni Views17408
    Read More
  10. [c++] p.47 연습문제 3번

    Date2003.04.23 CategoryDevelop Byhooni Views11337
    Read More
  11. [c++] p.118 확인학습 5번

    Date2003.04.23 CategoryDevelop Byhooni Views11934
    Read More
  12. [c++] namespace 사용 예

    Date2003.04.23 CategoryDevelop Byhooni Views9543
    Read More
Board Pagination Prev 1 ... 56 57 58 59 60 61 62 63 64 65 ... 71 Next
/ 71