美文网首页
win_c/c++ mess03--mfc(sunxin)

win_c/c++ mess03--mfc(sunxin)

作者: Ewitter | 来源:发表于2020-01-04 20:20 被阅读0次

    1. lesson01

    GetStockObject      //get brush
    LoadIcon
    LoadCursor
    
    RegisterClass       // register windows class
    CreateWindow 
    ShowWindow
    
    GetDC
    ReleaseDC
    
    BeginPaint
    EndPaint
    
    PostQuitMessage
    

    2. lesson04

    MessageBox          // pop up a window
    
    MoveTo              // move to specified point
    MoveToEx            // move to specified point and return previous pos
    LineTo              // draw line from current point to specified point
    
    GetParent           // get parent window
    GetDesktopWindow
    
    SelectObject            // set up attributes
    
    FillRect
    LoadBitmap
    
    SetROP2             // set draw mode
    
    CWnd class          // about window
    CDC  class          // about paint
    CPen
    CClientDC
    CWindowDC
    CBitmap
    CRect
    

    3. lesson05

    CreateSolidCaret 
    ShowCaret
    SetCaretPos
    
    GetTextMetrics      // get text info(height,width etc)
    
    TextOut             // output str at specified pos
    LoadString
    
    GetTextExtent       // get width of string
    BeginPath
    EndPath
    Rectangle
    SetClipPath 
    
    SetTextColor
    
    CreatePointFont     // create a type of font
    DrawText
    
    SetTimer
    KillTimer
    

    4. lesson06

    GetMenu
    GetSubMenu
    CheckMenuItem       // set menu checked
    SetDefaultItem 
    SetMenuItemBitmaps
    
    GetSystemMetrics
    
    EnableMenuItem
    SetMenu
    LoadMenu
    Detach
    
    OnContextMenu       // pop up a dynamic menu when right mouse clicked
    TrackPopupMenu      // create a dynamic menu
    
    ClientToScreen 
    ScreenToClient
    
    AppendMenu 
    CreatePopupMenu
    InsertMenu
    DeleteMenu
    
    DrawMenuBar
    
    Invalidate          // redraw when parameter is TRUE
    InvalidateControl
    
    LOWORD              // get data of the low byte
    
    GetActiveView
    

    5. lesson07

    DoModal
    
    GetDlgItem
    GetWindowText
    SetWindowText
    GetDlgItemText
    SetDlgItemText
    GetDlgItemInt
    SetDlgItemInt
    
    UpdateData          // update data from var to control if param is FALSE
    
    SendMessage
    SendDlgItemMessage
    
    SetFocus
    
    GetWindowRect       // get previous size of rect
    SetWindowText
    SetWindowPos
    
    SetwindowLong       // set window style
    GetNextWindow       
    GetWindow
    GetNextDlgTabItem
    
    GetFocus
    

    6. lesson08

    AddPage
    SetWizardMode
    SetWizardButtons
    
    AddString
    SetCurSel
    GetCurSel
    GetLBText
    

    7. lesson09

    AfxGetInstanceHandle        // get handle of current application
    AfxRegisterWndClass
    SetClassLong                // similar to SetWindowLong
    AfxGetApp
    
    CToolBar/CStatusBar
    
    EnableDocking
    DockCOntrolBar
    RecalcLayout
    ShowControlBar
    
    GetCurrentTime
    SetPaneText
    CommandToIndex
    SetPaneInfo
    
    user_defined_message : WM_USER+num
    SetPos
    MoveWindow
    
    SetRange
    StepInt
    
    SetMessageText
    GetMessageBar
    GetDescendantWindow
    
    CenterWindow
    ShowSplashScreen
    

    8. lesson10

    SetPixel
    Reactangle
    Ellipse
    
    CColorDialog
    CFontDialog
    CreateFontIndirect
    CGdiObject::DeleteObject
    
    GetDlgCtrlID
    DrawItem
    
    CreateCompatibleDC
    BitBlt
    GetClientRect
    StretchBlt
    

    9. lesson11

    OnPrepareDC
    SetViewportOrg
    SetWindowOrg
    DPtoLP
    
    CMetaFileDC
    PlayMetaFile
    DeleteMetaFile
    CopyMetaFile
    
    CreateCompatibleDC
    CreateCompatibleBitmap
    

    10. lesson12

    fopen
    fwrite
    fflush
    fread
    fclose
    fseek
    
    ofstream
    ifstream
    
    CreateFile
    WriteFile
    ReadFile
    CloseHandle
    
    CFile
    CFile::GetLength
    CFileDialog
        
    GetProfileString
    LoadStdProfileSettings
    SetRegistryKey
    
    RegCreateKey
    RegSetValue
    RegCloseKey
    RegQueryValue
    RegQueryValueEx
    RegSetVauleEx
    RegOpenKey
    RegDeleteKey
    

    11. lesson13

    CArchive
    
    CDocument::GetFirstViewPosition
    GetNextView
    Serialize
    

    12. socket & dll

    WSAStartup
    WSAAsynSelect
    WSAEnumProtocols
    
    InitializeCriticalSection   
    EnterCriticalSection
    LeaveCriticalSection
    DeleteCriticalSection
    
    WSASocket
    WSARecvFrom
    gethostbyname
    gethostbyaddr
    
    CreatePipe
    WaitNamedPipe
    
    _declspec(dllimport)            // modifier,descripts the function is imported from dlls
    _declspec(dllexport)        // modifier,descripts the function is exported
    
    
    follow command run in cmd:
    dumpbin -imports appname.exe        // get imported function info
    dumpbin -exports dllname.dll        // get exported function info
    
    GetForeWindows
    LoadLibrary
    FreeLibrary
    GetProcAddress
    SetWindowHookEx         // intercept message
    CallNextHookEx
    GetModuleHandle
    

    13. Summary

    abandon

    相关文章

      网友评论

          本文标题:win_c/c++ mess03--mfc(sunxin)

          本文链接:https://www.haomeiwen.com/subject/ygefactx.html