Edit Controls and such

This is a discussion on Edit Controls and such within the Windows Programming forums, part of the Platform Specific Boards category; Im trying to add a Edit box control and a enter button to like the bottom of an SDI application......i'm ...

  1. #1
    Unregistered
    Guest

    Edit Controls and such

    Im trying to add a Edit box control and a enter button to like the bottom of an SDI application......i'm new to programming in windows and would perfer to do this in API.....could someone point me in the right direction.....thanks alot

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Cool here...

    For edit box:

    CreateWindow(
    "edit",
    "Text",
    WS_CHILD | WS_VISIBLE | WS_BORDER,
    x_position,
    y_position,
    length,
    width,
    hWnd, // handle to main window
    (HMENU)1,
    hInst, // program's instance handler
    NULL
    );

    For a button:

    CreateWindow(
    "button",
    "Text",
    WS_CHILD | WS_VISIBLE,
    x_position,
    y_position,
    length,
    width,
    hWnd, // handle to main window
    (HMENU)1,
    hInst, // program's instance handler
    NULL
    );

    I hope this helps.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yes, SyntaxBubble is correct. All these controls you are using are simply windows (child windows, to be specific). They just look different. Good luck!

    --Garfield
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21