본문 바로가기
반응형

C & C++444

[Combo] 콤보박스 클릭 없이 콤보박스 목록 열기 CB_SHOWDROPDOWN 메시지를 콤보박스에 보내면 된다. cf) MSDN 에 CB_SHWODROPDOWN 대한 내용. ---------------------------------------------- CBS_DROPDOWN 또는 CBS_DROPDOWNLIST 스타일을 가진 콤보박스에서, 목록을 숨기거나 보여주기를 할때 응용프로그램은 CB_SHWODROPDOWN 메시지를 콤보박스에 보낸다. 이 메시지를 보내기 위해서는 SendMessage 를 사용한다. SendMessage 의 파라미터는 아래와 같다. SendMessage((HWND) hWnd, // 목적 대상 윈도우의 핸들, CB_SHOWDROPDOWN, // 보내려는 메시지 (WPARAM) wParam, // 보여줄 상태 (LPARAM) lPa.. 2011. 4. 27.
[Widget] 시계 Introduction I created this tiny clock program, which supports custom skins, for my brother. Anyone who wants to add a new skin can create a skin directory in /Theme/*. Background The code is written based upon Windows layered window and GDI+. In the source code, you will find the GDIPluszH.h file which is provided here and also the CXml classes which are provided here. How to Add a New Skin Eac.. 2011. 4. 26.
[Dialog] 쪼개지는 다이얼로그 The Pitch Ever get bored minimizing, maximizing & restoring windows? Ever wanted to catch the user unawares and make them notice an app that's just that little bit special. Ever wanted to make a stealth program that literally slides into the background. Well with the CWindowAnima class you can now animate the appearance and disappearance of windows in ways a little different from the norm. There.. 2011. 4. 26.
[Button] 이동하는 버튼, 배경이미지 바꾸기 Introduction In UI development, we have to implement some nice effects usually, and making some controls to be transparent is a problem that we often meet. In this article, I present an approach to implement the transparency of controls. The source code includes the class CTransparentHelper based on the Win32 API, and it can be used in MFC, ATL, WTL, Win32 applications, or may be some other fram.. 2011. 4. 26.
[MessageBox] 다양한 메시지 박스 Introduction In any application with many features and non-trivial user interface, it is necessary to display some message boxes. Sometimes you want to ask user, "Do you want to continue or stop?". Unfortunately standard Windows MessageBox() does not have this option, unless you carefully word message so that it can be answered with a yes or no. This leaves user re-reading your message and think.. 2011. 4. 26.
[Dialog] 투명 다이얼로그 Introduction There are several transparent dialogs on CodeProject; however, none of them provide a generic dialog that allows you to paint on the transparent region. The reason for this is because Windows doesn’t effectively support transparent CWnd objects in the first place. The image above shows StyleDialog being used with Style Toolkit[^] version 1.1. However, StyleDialog may be used with or.. 2011. 4. 26.
반응형