Click here to Skip to main content
11,583,865 members (59,647 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC
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 9:13am
23_444547
Edited 7-Sep-10 11:14am
v6

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

  Print Answers RSS
0 OriginalGriff 430
1 Sergey Alexandrovich Kryukov 314
2 virusstorm 268
3 Richard Deeming 220
4 Dave Kreskowiak 200
0 OriginalGriff 1,623
1 Sergey Alexandrovich Kryukov 1,135
2 Abhinav S 701
3 Dave Kreskowiak 627
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 7 Sep 2010
Copyright © CodeProject, 1999-2015
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