Prev: Getting the PIDL of a IShellFolder (should be easy?.. but it's not!!)
Next: Is it possible to determine (programmatically) if system wasjust powered up or rebooted
From: greenfish on 13 Jul 2010 01:16 can i change or hide the thick frame line of CMainFrame? my CMainFrame was created as (~WS_CAPTION) and (WS_THICKFRAME), but it's thick frame line on NCClient area was too ugly. (my CMainFrame must be able to resize.) can it be possible change or hide it?
From: ScottMcP [MVP] on 13 Jul 2010 08:00
On Jul 13, 1:16 am, greenfish <greenfis...(a)gmail.com> wrote: > can i change or hide the thick frame line of CMainFrame? > > my CMainFrame was created as (~WS_CAPTION) and (WS_THICKFRAME), > but it's thick frame line on NCClient area was too ugly. > (my CMainFrame must be able to resize.) > > can it be possible change or hide it? Add a messge handler for WM_NCPAINT and paint it as you like. You will have to paint the entire frame. (Don't call the base class implementation.) |