Can't make edit box

Discussion in 'Win32' started by polyfrag, Sep 4, 2012.

  1. polyfrag

    polyfrag New Member

    Joined:
    Sep 4, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Why isn't my edit box showing up?

    Code:
    case WM_CREATE:
      g_hWndUsernameEdit = CreateWindow("username", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER
       | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL,
       //0, 0, 0, 0, g_hWndMenu, (HMENU)ID_USERNAMEEDIT, ((LPCREATESTRUCT)lParam)->hInstance, NULL);
       0, 0, 0, 0, g_hWndMenu, NULL, ((LPCREATESTRUCT)lParam)->hInstance, NULL);
      return 0;
    
     
  2. polyfrag

    polyfrag New Member

    Joined:
    Sep 4, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Doesn't work

    Code:
    case WM_CREATE:
    		g_hWndUsernameEdit = CreateWindow("username", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | ES_LEFT, 
    			0, 0, 100, 50, g_hWndMenu, NULL, ((LPCREATESTRUCT)lParam)->hInstance, NULL);
    		return 0;
    
     
  3. polyfrag

    polyfrag New Member

    Joined:
    Sep 4, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Doesn't work...

    Code:
    case WM_CREATE:
      g_hWndUsernameEdit = CreateWindow("edit", NULL, WS_CHILD | WS_VISIBLE,
       0, 0, 100, 50, g_hWndMenu, (HMENU)ID_USERNAMEEDIT, g_hInstance, NULL);
      return 0;
    
     
  4. polyfrag

    polyfrag New Member

    Joined:
    Sep 4, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Never mind, fixed.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice