SetParent() or SetWindowPos() Functions?

So I want to start by saying that I love ModernMix. I think it is an excellent idea and it works great on my Windows 8 machine. 

 

What I am trying to do is develop a custom interface around the user32 libraries in windows. I want to be able to embed a MetroUI window into another form. To do this, I was trying the SetParent() function and the SetWindowPos() function but not having any luck with this as it will not effect the window that is opened by ModernMix. 

 

Any ideas?

5,931 views 1 replies
Reply #1 Top

So as a follow up to this, I was able to get the window to embed and resize, so I feel like I am half way there. 

 

Now the problem is that when it sets the Metro UI window as the child to the form it just gives me a blue screen, but the window still has the content in the back, just not visible. I tried the repaint option on and off with no difference. The only thing I can think of is that ModernMix is only one piece to the puzzle.