GUI
-
툴바 - Win32GUI/컨트롤 2009. 1. 20. 00:06
툴팁 on TTN_GETDISPINFO NMTTDISPINFO .lpszText CreateToolbarEx() TBSTYLE_FLAT TBSTYLE_LIST TBSTYLE_TOOLTIPS // TTN_GETDISPINFO HINST_COMMCTRL IDB_STD_SMALL_COLOR STD_FILENEW ... TBBUTTON .iBitmap .idCommand .fsState TBSTATE_ENABLED TBSTATE_CHECKED .fsStyle TBSTYLE_BUTTON TBSTYLE_GROUP TBSTYLE_CHECK TBSTYLE_SEP .iString TB_SETEXTENDEDSTYLE TBSTYLE_EX_DRAWDDARROWS TB_ADDSTRING // TBBUTTON.iString TB..
-
공통 다이얼로그 박스(대화상자) - Win32GUI/Window 2009. 1. 19. 22:45
SHBrowseForFolder() BROWSEINFO .hwndOwner .lpszTitle .pidlRoot .ulFlags BIF_NEWDIALOGSTYLE BIF_EDITBOX .lpfn on BFFM_INITIALIZED SHGetPathFromIDList() #include #include "shlobj.h" static bool GetFolder(std::string& folderpath, const char* szCaption = NULL, HWND hOwner = NULL) { bool retVal = false; // The BROWSEINFO struct tells the shell // how it should display the dialog. BROWSEINFO bi; memse..
-
메뉴 - Win32GUI/컨트롤 2009. 1. 19. 22:32
Windows는 또한 다이얼로그와 같은 팝업 윈도우 상의 메뉴를 지원한다. 자식 윈도우는 메뉴를 가질 수 없다. // 컨텍스트 메뉴 메뉴 WM_COMMAND에서 validation을 한다. 액셀러레이터 툴바 버튼 메뉴 바 명령 항목 체크 표시 라디오 메뉴 항목 팝업 항목 팝업 메뉴 LoadMenu() // 메뉴바? DestroyMenu() SetMenu() GetMenu() CreateMenu() CreatePopupMenu() AppendMenu() MF_POPUP MF_STRING MF_BITMAP InsertMenu() InsertMenuItem() GetSubMenu() // 팝업 메뉴? DeleteMenu() CheckMenuItem() MF_BYCOMMAND MF_CHECKED|MF_UNCHE..
-
콘솔 입력 - DirectXGUI/컨트롤 2009. 1. 18. 03:27
#include #include #include #define KEYDOWN(State,KeyID) (State[KeyID] & 0x80) char c_szClassName[] = "마우스입력" ; HINSTANCE g_hInst ; BOOL g_bPaused = TRUE ; LPDIRECTINPUT g_lpDirectInput ; LPDIRECTINPUTDEVICE g_lpMouse ; LPDIRECTINPUTDEVICE g_lpKeyboard ; char g_szText[1024] ; int X_pos, Y_pos ; BOOL bLeftButton, bRightButton ; #define LEFTBUTTON(State) (State.rgbButtons[0] & 0x80) #define RIGHTBU..
-
애니메이션 컨트롤 - Win32GUI/컨트롤 2009. 1. 15. 22:14
#include #pragma comment(lib, TEXT("comctl32.lib")) #include "resource.h" BOOL CALLBACK DlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam) { switch (iMessage) { case WM_INITDIALOG: if (SendMessage(GetDlgItem(hDlg, IDC_ANIMATE1), ACM_OPEN, 0, (LPARAM)"filecopy.avi")) SendMessage(GetDlgItem(hDlg, IDC_ANIMATE1), ACM_PLAY, -1, MAKELPARAM(0, -1)); return TRUE; case WM_COMMAND: switch (LOWOR..
-
MS FlexGrid(MSFlexGrid)GUI/컨트롤 2009. 1. 5. 13:55
CMSFlexGrid .SetRows() .SetCols() .SetTextMatrix() .SetRow() .SetCol() .SetCellBackColor() .SetCellForeColor() CEditFlexGrid -> CMSFlexGrid #include "EditFlexGrid.h" class CEditableGridDlg : public CDialog { // Construction public: CEditableGridDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CEditableGridDlg) enum { IDD = IDD_EDITABLEGRID_DIALOG }; CEditFlexGrid m_..
-
리스트 박스 - Win32GUI/컨트롤 2009. 1. 4. 16:59
로그 표시 CreateWindow() "listbox" WS_VSCROLL LBS_NOTIFY LBS_EXTENDEDSEL LBS_MULTIPLESEL LBS_WANTKEYBOARDINPUT // WM_VKEYTOITEM on LBN_SELCHANGE on WM_VKEYTOITEM on LBN_DBLCLK LB_ADDSTRING LB_DELETESTRING LB_ITEMFROMPOINT LB_SETCURSEL LB_GETCURSEL LB_GETTEXT LB_GETTOPINDEX LB_SETTOPINDEX LB_GETITEMHEIGHT LB_RESETCONTENT LB_GETCOUNT DlgDirList() // LB_DIR DlgDirSelectEx() LB_FINDSTRING LB_FINDSTRINGE..