"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
I am dealing with a problem and I would need your help.
I have two top most windows, and i want to always have one of the windows in front of the other. The solution that makes one of the windows a child of the other cannot be applied in my case.
Thank you for your help.
Thank you Iain for your answer. The solution with one child of the other works perfectly, but the reason why i was searching for another solution was that the number of windows involved isn't in fact 2, it could be bigger, so i will need to change dinamically the parent of my "upper" window. You said to use the topmost style, both of the windows are made TopMost using the SetWindowPos method. You mean maybe the WS_TOPMOST style.
I have some powerpoint addins which are to be added to powerpoint programmatically.The problem in the below code is it always says power application object cannot be created while running the program. but powerpoint application object will create during debugging the program.
hence I am not able to figure out the problem. Could any one help me please?
I have a MFC application in which I need to create a temporary editbox on the view. But that editbox does not accept ctrl+C & ctrl+V commands from keyboard. It should support copy & paste by default. I create it with WS_CHILD | WS_VISIBLE styles.
I have entered the Copy paste shortcuts into accelerator table for use in the view.
Does anyone know the reason why it does not paste in editbox? Instead it pastes in the view.
Once you've read it, the following will make sense:
I think you need to add an OnCmdMsg handler to your View class, to give the temporary edit box a quick bite at the cherry. Alternatively, use the CMyView::OnEditCopy handler to send a WM_COPY message to your edit box, if it exists. (and same for paste, cut...)
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!