Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet movie length Pin
rrrado29-Jul-03 21:17
rrrado29-Jul-03 21:17 
GeneralRe: Get movie length Pin
Manfred Staiger29-Jul-03 22:01
Manfred Staiger29-Jul-03 22:01 
GeneralRe: Get movie length Pin
rrrado30-Jul-03 4:52
rrrado30-Jul-03 4:52 
GeneralRe: Get movie length Pin
Ted Ferenc30-Jul-03 0:09
Ted Ferenc30-Jul-03 0:09 
GeneralRe: Get movie length Pin
rrrado30-Jul-03 4:51
rrrado30-Jul-03 4:51 
GeneralSplitter Resizing Pin
super29-Jul-03 21:15
professionalsuper29-Jul-03 21:15 
GeneralRe: Splitter Resizing Pin
Rage29-Jul-03 21:34
professionalRage29-Jul-03 21:34 
GeneralRe: Splitter Resizing Pin
jhwurmbach29-Jul-03 21:56
jhwurmbach29-Jul-03 21:56 
super wrote:
[...]when i start the application,the frame should be in maximised state[...]
void CMyView::OnInitialUpdate()
{
  Cview::OnInitialUpdate();  //call base class
  //Maximize Parent Frame Window
  GetParentFrame()->ShowWindow( SW_SHOWMAXIMIZED );
}
or in the Frame class:
void CMaxiFrame::ActivateFrame(int CmdShow)
{
  if (m_bOnce)
  {
    m_bOnce = false;
    nCmdShow = SW_SHOWMAXIMIZED; //Maximize this frame
  }
  CMDIChildWnd::ActivateFrame(nCmdShow);  //call base class
}
and initialize a bool m_bOnce to true in the constructor of CMaxiFrame.

super wrote:
[...]should not be able to resize the frame[...]
BOOL CMyFrame::PreCreateWindow(CREATESTRUCT& cs)
{
  //Make the frame non resizable
  cs.style &= ~WS_THICKFRAME;
  //Optionally remove the 'maximize' button from the top right
  cs.style &= ~WM_MAXIMIZEBOX;
  return CMDIChildWnd::PreCreateWindow(cs);
}

super wrote:
[...]we should not be able to resize the splitter window[...]

Here, the trick is that we do not let CSplitterWnd see anything that could initiate a splitter drag:
In CMySplitter::OnLButtonDown() call CWnd::OnLButtonDown() instead of CSplitterWnd.
In CMySplitter::OnMouseMove() call CWnd::OnMouseMove() instead of CSplitterWnd.
In CMySplitter::OnSetCursor() call CWnd::OnOnSetCursor() instead of CSplitterWnd.



My opinions may have changed, but not the fact that I am right.
GeneralRe: Splitter Resizing Pin
super30-Jul-03 18:37
professionalsuper30-Jul-03 18:37 
GeneralBSCMAKE crashing Pin
rrrado29-Jul-03 21:12
rrrado29-Jul-03 21:12 
GeneralRe: BSCMAKE crashing Pin
Franz Klein29-Jul-03 21:33
Franz Klein29-Jul-03 21:33 
GeneralRe: BSCMAKE crashing Pin
rrrado29-Jul-03 21:46
rrrado29-Jul-03 21:46 
Generalprogram to be a NT service and minimise to a system tray icon upon startup Pin
nexus8429-Jul-03 21:04
nexus8429-Jul-03 21:04 
GeneralRe: program to be a NT service and minimise to a system tray icon upon startup Pin
Frank K29-Jul-03 22:17
Frank K29-Jul-03 22:17 
GeneralRe: program to be a NT service and minimise to a system tray icon upon startup Pin
Mike Dimmick30-Jul-03 2:53
Mike Dimmick30-Jul-03 2:53 
GeneralRe: program to be a NT service and minimise to a system tray icon upon startup Pin
Anonymous30-Jul-03 5:36
Anonymous30-Jul-03 5:36 
GeneralGDI+ BMP conversion Pin
Ajesh kumar29-Jul-03 20:16
Ajesh kumar29-Jul-03 20:16 
GeneralMemory leaks eliminating Pin
El'Cachubrey29-Jul-03 20:06
El'Cachubrey29-Jul-03 20:06 
GeneralRe: Memory leaks eliminating Pin
Joe Woodbury29-Jul-03 21:58
professionalJoe Woodbury29-Jul-03 21:58 
GeneralRe: Memory leaks eliminating Pin
Andrew Walker29-Jul-03 22:43
Andrew Walker29-Jul-03 22:43 
GeneralRe: Memory leaks eliminating Pin
LittleYellowBird30-Jul-03 3:13
LittleYellowBird30-Jul-03 3:13 
GeneralSerial Communication Write/Read using events Pin
Member 42422129-Jul-03 19:56
Member 42422129-Jul-03 19:56 
Questionhow to print a bitmap from a view? Pin
sherryfa29-Jul-03 19:22
sherryfa29-Jul-03 19:22 
AnswerRe: how to print a bitmap from a view? Pin
Frank K29-Jul-03 19:59
Frank K29-Jul-03 19:59 
Generalopen the printer device Pin
Jerome Conus29-Jul-03 19:19
Jerome Conus29-Jul-03 19:19 

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.