Thread: editbox help

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    8

    editbox help

    hello again

    so i overcomed the problem with getting integers from editbox

    i am now trying to create a smth like a popup editbox that appears when i doubleclick on the surface i know i should use : "WM_RBUTTONDBLCLK" for example,but when i put this in the case it just crashes when i run it
    this is the ebStyle: WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT ;


    edB1 = CreateWindow ("edit",NULL,ebStyle,
    800,500,100,100,hwnd,
    (HMENU) IDC_EDIT1,((LPCREATESTRUCT) lParam) -> hInstance, NULL);
    any ideas?

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    You need to post more code than that, there is no reason calling CreateWindow would crash an app. Something else that you didn't post is amiss. Also, you should create the child on creation of your main window, and just make it visible on the double click.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-25-2005, 03:09 PM
  2. Create two buttons that interact with an editbox
    By Arkanos in forum Windows Programming
    Replies: 8
    Last Post: 07-13-2005, 12:56 AM
  3. Create two buttons that interact with an editbox
    By Arkanos in forum C++ Programming
    Replies: 4
    Last Post: 07-11-2005, 01:17 AM
  4. editbox problem
    By tyouk in forum Windows Programming
    Replies: 7
    Last Post: 10-05-2004, 09:14 PM
  5. Editbox problems
    By Devil Panther in forum Windows Programming
    Replies: 9
    Last Post: 07-27-2003, 04:12 PM