ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 윈도우 - MFC
    GUI/Window 2008. 12. 25. 17:47
    CCmdTarget
    <- CWnd
    <- CFrameWnd
    <- CView
    <- CScrollView
    <- CFormView
    <- CDialog

    기본으로 제공되는 표준 커서, 배경색, 아이콘 등을 사용하지 않고 다른 것을 사용하려면 임의의 클래스를 지정할 필요가 있다.

    AfxRegisterWndClass()
    AfxRegisterClass()

    CCmdTarget
    .BeginWaitCursor()
    .EndWaitCursor()

    CWinApp -> CWinThread -> CCmdTarget
    .LoadStandardCursor()
    .LoadCursor()
    loads the cursor into memory only once

    CWnd -> CCmdTarget
    ON_WM_SETCURSOR
    디폴트 커서 대신 다른 커서를 보일 수 있다.
    ::SetCursor()
    ON_WM_NCHITTEST
    HTCLIENT|HTCAPTION

    on PostNcDestroy
    on PreTranslateMessage
    on PreCreateWindow

    OnCreate
    OnDestroy
    OnSize
    OnMouseActivate
    OnPaint

    .CreateEx()
    .ModifyStyle()
    WS_VISIBLE
    .ModifyStyleEx()
    .InvalidateRect()
    .Invalidate()
    .UpdateWindow()
    .SetWindowPos()
    .RepositionBars()
    .SetMenu()
    .UpdateData()
    DDX mechanism
    .GetDlgItem()
    .EnableWindow()
    .RepositionBars()
    .CenterWindow()
    .SetDlgCtrlID()
    .GetSafeHwnd()
    .SetWindowText()
    .
    GetWindowText()
    .GetClientRect()
    .SetFont()
    .GetFont
    .WindowProc()
    .GetWindowRect()
    .ScreenToClient()
    .ShowWindow()
    SW_HIDE
    CWaitCursor


    참조 사이트:
Designed by Tistory.