editbox help

This is a discussion on editbox help within the Windows Programming forums, part of the Platform Specific Boards category; hello again so i overcomed the problem with getting integers from editbox i am now trying to create a smth ...

  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
    1,670
    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.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

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

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