activex default,min size ?



  • Hallo

    Wie ist es möglich die minimale Größe eines activeX Steuerelement fest zulegen ?
    Ist das einfach über eine Methode möglich ? Jemand tipps bzw einen Rat ?
    Ist es überhaupt möglich ?

    mfg martin



  • WM_GETMINMAXINFO ?



  • Hallo

    ja das hab ich leider schon versucht vielleicht hab ichs ja auch falsch
    verstaden ...

    Ich habe es so gemacht:

    void CMyOCXCtrl::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
    {
    // set the minimum tracking width
    // and the minimum tracking height of the window
    //lpMMI->ptMinTrackSize.x = 700;
    //lpMMI->ptMinTrackSize.y = 550;
    //this->MessageBox("Test","ewrew",MB_OK);

    OnGetMinMaxInfo(lpMMI);
    lpMMI->ptMinTrackSize.x = 300;
    lpMMI->ptMinTrackSize.y = 400;
    }

    ich habe es auch in die message map eingetragen
    mit ON_WM_GETMINMAXINFO(OnGetMinMaxInfo)
    dennoch wird es ignoriert ... fehlt noch was ?
    mfg martin_zi



  • Hallo

    ich hab mir jetzt was im OnSize event eingebaut.
    ich setzt quasi jedes mal wenn das element zu klein wird
    mit SetControlSize( cx,cy ); das control auf die minimal größe.

    funktioniert auch gut ... nur wenn ich im "developer-modus" bin
    wird das ignoriert ...
    aber es gibt doch steuere-elemente die das können wie machen die das ??
    jemand rat ?

    mfg martin


Anmelden zum Antworten