July 10th, 2013, 09:11 AM
[RESOLVED] C++ dialog listbox display outside the dialogbox
I'm trying to duplicate a listbox I saw in another application. It
looks like this:
The listbox is hidden until the ownerdrawn pushbutton is selected. So
far so good, but my listbox is displayed only up to the edge of the
dialog box which means it shows only two lines and doesn't extend into the
desktop area. I'd expect this default behavior due to the OS clipping
applications so they aren't overwriting one another.
But how did the original dialog get around this? I tried a few options
with WS_CLIP... SetWindowPos(HWND_TOPMOST... and also creating the
listbox at INITDIALOG time and have the parent be the desktop, but
so far it displays just the two lines. Any idea on this?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.