GUI/컨트롤
-
GUI 제어 - WindowsGUI/컨트롤 2009. 3. 22. 23:01
int WINAPI WinMain( HINSTANCE hInstance, // handle to current instance HINSTANCE hPrevInstance, // handle to previous instance LPSTR lpCmdLine, // pointer to command line int nCmdShow // show state of window)GetCommandLine()WM_CREATEWM_DESTROYWM_QUITWM_PAINTWM_KEYDOWNWM_CHARWM_LBUTTONDOWNWM_CONTEXTMENUWM_HELPGetMessage()TranslateMessage()DispatchMessage()WaitMessage()PeekMess..
-
-
-
상태 바 - Win32GUI/컨트롤 2009. 3. 10. 18:03
InitCommonControls() CreateStatusWindow() SB_SETPARTS SB_SETTEXT #include LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { int SBPart[4], i; static HWND hState; switch (iMessage) { case WM_CREATE: InitCommonControls(); hState = CreateStatusWindow(WS_CHILD|WS_VISIBLE, "", hWnd, 0); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; case WM_SIZE: SendMessage(hS..
-
마우스 - MFCGUI/컨트롤 2009. 3. 10. 17:52
WM_NCHITTEST WM_NCLBUTTONDOWN WM_ENTERSIZEMOVE WM_EXITSIZEMOVE OnMouseMove // WM_MOUSEMOVE MK_LBUTTON ::TrackMouseEvent() TME_HOVER TME_LEAVE TME_CANCEL WM_MOUSEHOVER WM_MOUSELEAVE #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #define _WIN32_WINNT 0x500 class CTry03Dlg : public CDialog { // { BOOL m_bMouseTracking; // } // Construction public: CTry03Dlg(CWnd* pParent = N..
-
마우스 - Win32GUI/컨트롤 2009. 3. 10. 01:01
WM_LBUTTONDOWN WM_LBUTTONUP WM_NCHITTEST WM_NCLBUTTONDOWN WM_ENTERSIZEMOVE WM_EXITSIZEMOVE WM_MOUSEMOVE TrackMouseEvent() TME_HOVER TME_LEAVE TME_CANCEL WM_MOUSEHOVER WM_MOUSELEAVE SetCapture() GetCapture() ReleaseCapture() ClientToScreen() struct { int x,y; BOOL Move; } Line[10000]; int index=0; LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { static BOOL bNowDraw..
-
동영상GUI/컨트롤 2009. 2. 17. 20:33
MCI MCIWndCreate() MCIWNDF_NOTIFYMODE MCIWNDF_NOTIFYPOS MCIWndDestroy() MCIWndClose() MCIWndPlay() on MCIWNDM_NOTIFYMODE MCI_MODE_PLAY MCI_MODE_STOP on MCIWNDM_NOTIFYPOS #include LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { static HWND hWndAVI=0; switch (iMessage) { case WM_LBUTTONDOWN: if (hWndAVI) { MCIWndClose(hWndAVI); MCIWndDestroy(hWndAVI); hWndAVI=0; } h..
-
프로그레스 바 컨트롤 - MFCGUI/컨트롤 2009. 2. 10. 01:51
CProgressCtrl .Create() .SetRange() .SetStep() .SetPos() .StepIt() .. //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. // #endif // !defined(AFX_STDAFX_H__FDE11EDF_10C2_45B7_9039_DC9CE6E9CA6F__INCLUDED_) BOOL CProgressDlg::OnInitDialog() { .. SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra in..