Click here to Skip to main content
11,495,493 members (62,519 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 10:13am
23_444547
Edited 7-Sep-10 12:14pm
v6

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

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 265
3 Nakul Chaudhari 236
4 OriginalGriff 191
0 Sergey Alexandrovich Kryukov 10,322
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,422
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web04 | 2.8.150520.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