Click here to Skip to main content
15,868,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrint rectangle with bitmap brush Pin
Eugene Pustovoyt27-Jul-01 17:25
Eugene Pustovoyt27-Jul-01 17:25 
GeneralRe: Print rectangle with bitmap brush Pin
Christian Graus27-Jul-01 18:06
protectorChristian Graus27-Jul-01 18:06 
QuestionHow to disable right-click popup menu system wide Pin
JavaTony27-Jul-01 16:01
JavaTony27-Jul-01 16:01 
GeneralHelp with creating Always On Top hidden window Pin
JavaTony27-Jul-01 15:19
JavaTony27-Jul-01 15:19 
GeneralRe: Help with creating Always On Top hidden window Pin
Vitaliy Hubanov30-Jul-01 22:17
Vitaliy Hubanov30-Jul-01 22:17 
GeneralNon-resizable window. Pin
John Uhlenbrock27-Jul-01 11:35
John Uhlenbrock27-Jul-01 11:35 
GeneralRe: Non-resizable window. Pin
Nathan Hoffman27-Jul-01 11:59
Nathan Hoffman27-Jul-01 11:59 
GeneralRe: Non-resizable window. Pin
Ulf Öhlén27-Jul-01 19:29
Ulf Öhlén27-Jul-01 19:29 
You need to remove a couple of window style flags from the main frame: WS_THICKFRAME and WS_MAXIMIZEBOX. The easiest way to do this in MFC is to override CWnd::PreCreateWindow().
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
  if( !CFrameWnd::PreCreateWindow(cs) )
    return FALSE;
  cs.style &= ~(WS_THICKFRAME | WS_MAXIMIZEBOX);
  return TRUE;
}


--------------
"Aagh!! I'm a victim of a Random Act of Management!"
GeneralRe: Non-resizable window. Pin
Rick York27-Jul-01 21:51
mveRick York27-Jul-01 21:51 
GeneralRe: Non-resizable window. Pin
Ulf Öhlén28-Jul-01 8:45
Ulf Öhlén28-Jul-01 8:45 
GeneralCommunication among Components Pin
Nathan Hoffman27-Jul-01 11:00
Nathan Hoffman27-Jul-01 11:00 
GeneralRe: Communication among Components Pin
Frank Deo27-Jul-01 11:32
Frank Deo27-Jul-01 11:32 
GeneralRe: Communication among Components Pin
Cathy27-Jul-01 11:33
Cathy27-Jul-01 11:33 
GeneralCFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 10:47
Cathy27-Jul-01 10:47 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Neville Franks27-Jul-01 12:46
Neville Franks27-Jul-01 12:46 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 14:06
Cathy27-Jul-01 14:06 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Neville Franks27-Jul-01 14:10
Neville Franks27-Jul-01 14:10 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 14:15
Cathy27-Jul-01 14:15 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Neville Franks27-Jul-01 14:19
Neville Franks27-Jul-01 14:19 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 14:33
Cathy27-Jul-01 14:33 
Generalurgent!! please respond by e-mail Pin
27-Jul-01 10:36
suss27-Jul-01 10:36 
GeneralRe: urgent!! please respond by e-mail Pin
Carlos Antollini27-Jul-01 10:49
Carlos Antollini27-Jul-01 10:49 
GeneralRe: urgent!! please respond by e-mail Pin
Douglas Troy27-Jul-01 11:07
Douglas Troy27-Jul-01 11:07 
GeneralRe: urgent!! please respond by e-mail Pin
Matt Gullett27-Jul-01 11:24
Matt Gullett27-Jul-01 11:24 
General32bit color icons and user break points Pin
Douglas Troy27-Jul-01 9:40
Douglas Troy27-Jul-01 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.