Click here to Skip to main content
15,910,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to bring my CEdit control to top of all windows in my Dialog ,i try everything but nothings work ,i use visual studio 2005,below is the function that i trial

What I have tried:

C++
m_pEditCtrl->CreateEx(WS_EX_CLIENTEDGE|WS_EX_TOPMOST,WS_VISIBLE|WS_BORDER|WS_CHILD|ES_WANTRETURN , CRect(10, 200, 200, 230), this, NULL);
m_pEditCtrl->BringWindowToTop();
m_pEditCtrl->SetWindowPos(&wndTop,,,,,SWP_SHOWWINDOW);
Posted
Updated 16-Feb-16 4:29am
v2

1 solution

Try this:
C++
m_pEditCtrl->SetWindowPos(HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
 
Share this answer
 
v5
Comments
Member 12290282 16-Feb-16 11:02am    
I try this,is not working ,i see the CEdit control for a moment

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900