1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resizinfg the dialog when sip opens

Discussion in 'C++' started by avinashreddy, Oct 20, 2009.

  1. avinashreddy

    avinashreddy New Member

    Joined:
    Oct 20, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi all,
    i am working on windows mobile...i have a issue where when my sip opens few of my windows controls get hidden under the sip..so i tried to resize the window which is causing adverse effects...any help in regard will be greatly thanked....


    regards
    Avinash
     
  2. garapani

    garapani New Member

    Joined:
    Dec 3, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    maybe during re-size is happening u r not resizing the controls. so the controls are not modify according to window size.
    if u r using win32, this code snippet may helps u.
    here in the sample, if the window is resized the child item(edit box) is also need to re-size.

    case WM_SIZE:
    {
    HWND hEdit;
    RECT rcClient;
    GetClientRect(hwnd, &rcClient);
    hEdit = GetDlgItem(hwnd, IDC_MAIN_EDIT);
    SetWindowPos(hEdit, NULL, 0, 0, rcClient.right, rcClient.bottom,SWP_NOZORDER);
    }

    hope this solve your problem
     

Share This Page