How to make a window always appear on top of other windows?

橙三吉。 提交于 2020-01-06 07:03:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!