Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kriaz

@kriaz
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SDI Main Frame positioning?
    K kriaz

    I want my SDI application to have always the same size and position on screen. Resizing and Moving is disabled by the code below; which is inserted in OnCreate of main frame CMenu* pTopMenu = GetSystemMenu(FALSE); if(pTopMenu != NULL) { pTopMenu -> RemoveMenu(SC_SIZE, MF_BYCOMMAND); //No ReSize pTopMenu -> RemoveMenu(SC_MOVE, MF_BYCOMMAND); //No Move } for Resize and move above code works fine! BUT for size let us look at PreCreatewindow of Mainframe BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style &= ~FWS_ADDTOTITLE; cs.x = 0; cs.y = 77; cs.cx = 1000; cs.cy = 500; return TRUE; } the above code didn't work; if i change one value in the structure the other is automatically changed/ignored, gives unexpected positioning. May be some sort of aspect ratio problem which windows might be maintaining internally. Another soloution is to use Move in the initinstance but i want to avoid it since it first shows main frame at the 0,0 position and then moves it to required postion, with a slight but observable delay. Please help to solve the above problem.

    C / C++ / MFC help wpf question

  • Window Style
    K kriaz

    use following code: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (BaseClass::OnCreate(lpCreateStruct) == -1) return -1; // Do something // Remove positions of menu CMenu* pTopMenu = GetSystemMenu(FALSE); if(pTopMenu != NULL) { pTopMenu -> RemoveMenu(SC_SIZE, MF_BYCOMMAND); //remove resizeing pTopMenu -> RemoveMenu(SC_MOVE, MF_BYCOMMAND); //remove Moveing pTopMenu -> RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND); //remove Maximizing } return 0; }

    C / C++ / MFC

  • vc++
    K kriaz

    Right click on dialog select properties; from the general tab select the font size you want.:)

    C / C++ / MFC c++ tutorial

  • Z Order of controls on Dialog?
    K kriaz

    How can we control the Z Order of controls on a Dialog? kriaz.

    C / C++ / MFC question

  • Difference between class and Runtime Class
    K kriaz

    Thank You for reply.

    IT & Infrastructure question

  • where to start ?
    K kriaz

    I believe that for beginner VC++ 6 by sams publisher is best. later on shift to MSDN. (I know nothing about .NETness)

    C / C++ / MFC c++ csharp question learning

  • Difference between class and Runtime Class
    K kriaz

    A class is a template of an object, but what is a Runtime class?

    IT & Infrastructure question

  • sorry David Crow
    K kriaz

    I was away from net for a week; checked today and found remarks from ur fans well, I did't mean any thing by that title of thread, simply typed without any anything; perhaps an on forum sorry is needed. sorry:rose: kriaz

    C / C++ / MFC

  • DavidCrow does't know this any one knows this?
    K kriaz

    I want to remove Close button "X" from the right corner of Dialog, but still want to keep the system menu at the left corner. Unchecking the system menu option from dialog properties also removes the menu at left. Plz Help.:confused: kriaz.

    C / C++ / MFC help question

  • difference between Hotkeys and ShortKeys
    K kriaz

    Short cut keys are the "key" or "key combinations" that can be used instead of actual action e.g."Alt+F+P" prints a document in word; the acual action is clicking file menu and then selecting print option. (they are short cut to an action) Hotkeys are related to what we see at screen (not in menus) a character within a text with an underline, pressing that character activates thet particular action. They are single character. kriaz.:)

    C / C++ / MFC question

  • How to remove CLOSE Button from right top corner?
    K kriaz

    I want to remove Close button "X" from the right corner of Dialog, but still want to keep the system menu at the left corner. Unchecking the system menu option from dialog properties also removes the menu at left. Plz Help.:confused: kriaz.

    C / C++ / MFC help tutorial question

  • Armature Programming
    K kriaz

    Armature Programming or Amateur Programming?

    IT & Infrastructure question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups