问题
In my dialog I have a rich edit control. While typing in the richeditcontrol, I am displaying a list box for auto completion.
I want to display the listbox on top of other windows but my listbox is not visible fully but it is forced to be inside of richedit control.
I want to implement like listbox in combobox which is always top of other windows.
How to display the listbox on top of other window?
I am displaying below styles.
DWORD nListStyle = WS_CLIPCHILDREN|WS_EX_TOPMOST|WS_CHILD |WS_VISIBLE|LBS_NOTIFY|WS_VSCROLL|WS_HSCROLL|WS_BORDER|
LBS_OWNERDRAWVARIABLE|LBS_HASSTRINGS| LBS_NOINTEGRALHEIGHT;
m_ctrlListBox.Create(nListStyle , listBoxRect, this,IDC_LIST);
来源:https://stackoverflow.com/questions/50604923/how-to-make-a-window-always-appear-on-top-of-other-windows