After recieving help I now manage to open my modeless propertysheet (thank you), so my next question is how can I add buttons i.e CLOSE and CANCEL to the sheet that stays visible while changing propertypages?
Of course I can put two extra buttons in each propertypage with the name CLOSE and CANCEL, but I thought about using an extra modeless window added inside my CMiniFrameWindow.
1)Construct a CMiniFrameWnd from the CMainFrame.
2)In the CMiniFrameWnd I construct a Propertysheet ( new CSetUpSheet)
3)Create my modeless dialog with the two buttons CLOSE and CANCEL.
4) Append it
Around point (3) the problem starts, since I'm a novice in using and UNDERSTANDING MFC I change the pointers by random until it works (not always though...). If someone knows the philosophy behind how to use the constructor of the dialog and the Create (where to use which pointer...) and how to add the dialog in my case so it gets modeless I would be very happy.
Thank you in advance.