Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding all open application names Pin
Renjith Ramachandran17-Jun-02 5:45
Renjith Ramachandran17-Jun-02 5:45 
GeneralRe: Finding all open application names Pin
Atlantys17-Jun-02 8:26
Atlantys17-Jun-02 8:26 
GeneralHINTERNET HttpOpenRequest Pin
17-Jun-02 4:00
suss17-Jun-02 4:00 
GeneralRe: HINTERNET HttpOpenRequest Pin
benjymous17-Jun-02 4:25
benjymous17-Jun-02 4:25 
GeneralRe: HINTERNET HttpOpenRequest Pin
Roger Wright17-Jun-02 4:39
professionalRoger Wright17-Jun-02 4:39 
GeneralSet Interent Options Pin
17-Jun-02 3:16
suss17-Jun-02 3:16 
GeneralRe: Set Interent Options Pin
redeemer17-Jun-02 4:14
redeemer17-Jun-02 4:14 
GeneralRecreating a combobox style dropdown list Pin
Rob Whapham17-Jun-02 3:03
Rob Whapham17-Jun-02 3:03 
I have written an MFC CListCtrl-based properties control similar to one in Visual Basic and .NET. One of the property types available is a list of items that can either act as a list-only combobox, or an editable combobox.

For design reasons, I cannot simply place a CComboBox in the control to perform the in-place selection. So, I use my own CWnd container to hold the CListBox-derived list items and a CButton-derived action button. The CWnd container is created as:

bResult = m_wndDropDown.CreateEx (WS_EX_TOPMOST | WS_EX_TOOLWINDOW,
AfxRegisterWndClass (CS_SAVEBITS),
NULL,
WS_POPUP,
CRect (0,0,0,0),
pWnd,
0);

Where pWnd is the property list window, and where the actual window size and placement will be determined when it is displayed.

The reason for using a topmost toolwindow popup is to allow the dropdown list to extend beyond the bounding rect of the parent property list, as the dropdown for a standard combobox would. This all works fine and well with the one exception that, when the dropdown list has keyboard input focus (a requisite), it "steals" focus away from the rest of the application, and the apps title bar becomes rendered as inactive.

I have been unable to figure out how to duplicate what the real combobox does: allow the dropdown to extend outside of all window bounds and NOT make the application think it is inactive when the dropdown list has focus. Any ideas or solutions would be greatly appreciated.

Rob Whapham
Managing Software Engineer
AMX, Corp.
http://www.amx.com/
GeneralByte swap with negative numbers. Pin
JMajors9817-Jun-02 3:00
JMajors9817-Jun-02 3:00 
GeneralRe: Byte swap with negative numbers. Pin
redeemer17-Jun-02 4:18
redeemer17-Jun-02 4:18 
GeneralCListCtrl and colored string item Pin
pbmtp17-Jun-02 2:18
pbmtp17-Jun-02 2:18 
GeneralRe: CListCtrl and colored string item Pin
James R. Twine17-Jun-02 11:36
James R. Twine17-Jun-02 11:36 
QuestionHow to view resultset in data grid Pin
sailesh17-Jun-02 1:54
sailesh17-Jun-02 1:54 
AnswerRe: How to view resultset in data grid Pin
Renjith Ramachandran17-Jun-02 5:12
Renjith Ramachandran17-Jun-02 5:12 
GeneralDisplay Resultset in a Grid control without connecting directly to the database Pin
17-Jun-02 1:49
suss17-Jun-02 1:49 
GeneralProjects in VC++ Pin
17-Jun-02 1:20
suss17-Jun-02 1:20 
GeneralRe: Projects in VC++ Pin
17-Jun-02 5:07
suss17-Jun-02 5:07 
GeneralDynamic Picture Box Creation Pin
Paul Silvernail17-Jun-02 1:17
Paul Silvernail17-Jun-02 1:17 
GeneralRe: Dynamic Picture Box Creation Pin
17-Jun-02 2:41
suss17-Jun-02 2:41 
GeneralCRichEditCtrl Scrolling Problem Pin
Miguel Fonseca17-Jun-02 1:18
Miguel Fonseca17-Jun-02 1:18 
GeneralCOM and Exceptions Pin
Perry Bruins17-Jun-02 1:21
Perry Bruins17-Jun-02 1:21 
GeneralRe: COM and Exceptions Pin
Christian Graus17-Jun-02 1:40
protectorChristian Graus17-Jun-02 1:40 
GeneralRe: COM and Exceptions Pin
Perry Bruins17-Jun-02 20:41
Perry Bruins17-Jun-02 20:41 
GeneralScrolling image Pin
17-Jun-02 0:22
suss17-Jun-02 0:22 
GeneralRe: Scrolling image Pin
Renjith Ramachandran17-Jun-02 1:03
Renjith Ramachandran17-Jun-02 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.