Click here to Skip to main content
13,249,813 members (84,133 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a dropdown list nested in a grid cell that sits on a CFormView that I have created.

CreateEx(WS_EX_TOOLWINDOW, "MFCGridListDrpDnCtrl", "dropdownlist", WS_POPUP|WS_BORDER,
        CRect(0,0,0,0), GetDesktopWindow(), NULL, NULL)){

FYI, I am using the WS_EX_TOOLWINDOW style so that the dropdown window does not show up in the task bar.

When the window drops down, the dialog window where the dropdown is hosted becomes deactivated. The only window that is active is the dropdown list. To prevent this, one should be able to substitute the WS_CHILD for the WS_POPUP style. When I do that, it now behaves as it should (the dialog is not deactivated, however, my dropdown now does not display correctly. I am missing the scrollbars and the border. The scrollbars are there because you can click the area where they should appear and they are suddenly drawn (although not completely).

Note: I can make the dropdown list a child of the grid and it appears to display correctly but is clipped by the grid. I need the droplist to overlap the grid if necessary.

I am not sure what is going on. Any help would be appreciated.
Posted 7-Sep-10 10:13am
Updated 7-Sep-10 12:14pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 7 Sep 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100