GUI
-
OCXGUI/컨트롤 2009. 6. 26. 01:30
BaseInsa.vbp ... Object={B02F3647-766B-11CE-AF28-C3A2FBE76A13}#3.0#0; SPR32X30.OCX or Object={F856EC8B-F03C-4515-BDC6-64CBD617566A}#6.0#0; fpSPR60.OCX or Object={F856EC8B-F03C-4515-BDC6-64CBD617566A}#7.0#0; fpSPR70.OCX ... ins010mi.frm ... Object = "{B02F3647-766B-11CE-AF28-C3A2FBE76A13}#3.0#0"; "SPR32X30.OCX" or Object = "{F856EC8B-F03C-4515-BDC6-64CBD617566A}#6.0#0"; "fpSPR60.OCX" or Object = ..
-
스태틱 컨트롤 - Win32GUI/컨트롤 2009. 6. 25. 16:08
텍스트 컨트롤 문자열 스태틱 픽처 컨트롤(Picture Control) 이미지 스태틱 비트맵 STM_SETIMAGE STM_SETICON 아이콘 IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 294, 150 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Dialog" FONT 10, "System" BEGIN ... CONTROL 104,IDC_STATIC2,"Static",SS_BITMAP,220,15,62,80 // ICON IDI_ICON1,IDC_STATIC,185,90,20,20 END애니메이션 IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 187, 98 STYLE DS_MODALFRA..
-
커스텀 컨트롤GUI/컨트롤 2009. 6. 21. 15:39
서브클래싱 WS_CHILD ActiveX 컨트롤(OLE 컨트롤) 참조 사이트: http://www.catch22.net/tuts/custctrl http://www.codeproject.com/KB/miscctrl/custbutton001.aspx?display=Print http://jjjryu.tistory.com/entry/ActiveX-%EC%BB%A8%ED%8A%B8%EB%A1%A4-MFC http://jjjryu.tistory.com/entry/ActiveX-%EC%BB%A8%ED%8A%B8%EB%A1%A4-ATL http://debugjung.tistory.com/entry/ATL-ActiveX-%EC%A0%9C%EC%9E%91-%EA%B0%95%EC%9D%98-%EB%B0%95%EC%84%..
-
메시지 훅GUI/컨트롤 2009. 6. 19. 01:39
SetWindowsHookEx() WH_GETMESSAGE // 모든 메시지 WH_KEYBOARD HC_ACTION HC_NOREMOVE WH_CBT HCBT_CREATEWND CBT_CREATEWND WH_CALLWNDPROC UnhookWindowsHookEx() CallNextHookEx() HHOOK hKeyHook; LRESULT CALLBACK KeyHookProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode >= 0) { if (wParam == VK_F2) { ... } } return CallNextHookEx(hKeyHook, nCode, wParam, lParam); } LRESULT CALLBACK WndProc(HWND hWnd,U..
-
컴퓨터 화면 캡쳐 - Win32GUI/GDI 2009. 6. 4. 23:18
void SetCapture(CRect &rc) { CDC ScreenDC; ScreenDC.CreateDC("DISPLAY", NULL, NULL, NULL); CDC memDC; CSize s = CSize(rc.Size()); CBitmap bm; memDC.CreateCompatibleDC(&ScreenDC); bm.CreateCompatibleBitmap(&ScreenDC, s.cx, s.cy); memDC.SelectObject(&bm); memDC.BitBlt(0,0,s.cx, s.cy,&ScreenDC, rc.left, rc.top,SRCCOPY); HBITMAP hbit = (HBITMAP)bm; if (hbit == NULL) ::MessageBox(NULL, "bmp파일 생성이 실패하..
-
스크롤 바 - MFCGUI/컨트롤 2009. 6. 1. 00:29
CScrollView .SetScrollSizes() MM_HIMETRIC class CEx05aView : public CScrollView { CRect m_rectEllipse; int m_nColor; protected: // create from serialization only CEx05aView(); ... // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CEx05aView) public: ... virtual void OnInitialUpdate(); //}}AFX_VIRTUAL ... // Generated message map functions protected: //{{AFX_MSG(CEx..
-
스크롤 바 - Win32GUI/컨트롤 2009. 5. 29. 22:30
WS_HSCROLL WS_VSCROLL WM_HSCROLL SB_LINEUP or SB_LINELEFT SB_LINEDOWN or SB_LINERIGHT SB_PAGEUP or SB_PAGELEFT SB_PAGEDOWN or SB_PAGERIGHT SB_THUMBTRACK SB_THUMBPOSITION WM_VSCROLL SetScrollInfo() GetScrollInfo() SetScrollRange() GetScrollRange() SetScrollPos() GetScrollPos() ScrollWindow() 스크롤 성능 향상 모든 출력문의 x, y 좌표에서 스크롤 바의 Thumb 위치 값을 뺀다. int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPre..
-
GUI 제어 2 - WindowsGUI/컨트롤 2009. 5. 19. 18:54
메뉴 WM_COMMAND에서 validation을 한다. 액셀러레이터 툴바 6개의 표준 컨트롤 95이후에 추가된 공통 컨트롤 ActiveX 컨트롤 스타일 메시지 통지 메시지 서브클래싱 차일드 컨트롤 ID 추가 리소스 뷰 dialog > 오른 클릭 > Resource Symbols > New... CreateWindow() DestroyWindow() GetDlgCtrlID() hMenu GetWindowLong()/SetWindowLong() GWL_ID GetWindowText() WM_GETTEXT SetWindowText() WM_SETTEXT GetDlgItem() GetDlgItemText() SetDlgItemText() 정수인 경우 GetDlgItemInt() SetDlgItemInt() W..