c++ MFC Window(Frame) Manipulation
<p>I'm working on an Windows Application which has to show an overlaying fixed positioned window ("PopUp") in the left corner of the MainFrame which will receive some Information if a user missed some input or if certain actions have been successfully.</p>

<p>The "PopUp" Titlebar shall have an Icon next to the Title (e.g. ->Icon&lt;- "Error") and the standard X - Close-Button. The ClientArea will have an descriptive text of the occurred Message. </p>

<p>Additionally the standard Border of the PopUp shall be set to 1px(smaller than the default windows border)</p>

<p>The "PopUp" is derived from CWnd and created with WS_VISLBE | WS_CLIPSIBLINGS | WS_CHILD | WS_CAPTION in the OnCreate-Method of the Applications MainFrame Window</p>

<p>Now I need to set/shrink the default Border of my PopUp and add the Icon to the Titlebar of the PopUp.</p>

<p>Can someone give me some example code of how i can solve my issues?
I'm pretty new to c++ and MFC so far my research brought me to <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb688195(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/desktop/bb688195(v=vs.85).aspx</a>
but i dont know where and how to use DwmExtendFrameIntoClientArea() but so far I've read I assume Dwm is the way to go to be able to solve both problems or is there another/totally different way? Am I on the right track? </p>