15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


CCombobox doropped width

Norifumi SKYWALKER Masugami -- sky@mail.web-hyogo.or.jp
Friday, June 21, 1996

MSVC 4.1
NT3.51 and Win95

I want change width of Comobox at LISTDOWNBOX timming.

BOOL MyComob::ChangeDroppedWidth(int nWidth)
{
    BOOL bResult = SetDroppedWidth(nWidth);

    int nNowWidth = GetDroppedWidth();
    TRACE("GetDroppedWidth() ==> nNowWidth\n");

    return bResult;
}

on WIn95, bResult is TRUE.

but WindowsNT 3.51 ... FALSE returned. and nNowWidth is 0 altime.
If anyone has encountered this, please let me know.


sky@mail.web-hyogo-or.jp



rick cameron -- rick_cameron@msn.com
Monday, July 22, 1996

SetDroppedWidth is not supported on NT 3.51. Although the MFC documentation 
doesn't mention this, the entry on CB_SETDROPPEDWIDTH in the Win32 SDK 
documentation does.

- rick

> MSVC 4.1
> NT3.51 and Win95
> 
> I want change width of Comobox at LISTDOWNBOX timming.
> 
> BOOL MyComob::ChangeDroppedWidth(int nWidth)
> {
>     BOOL bResult = SetDroppedWidth(nWidth);
> 
>     int nNowWidth = GetDroppedWidth();
>     TRACE("GetDroppedWidth() ==> nNowWidth\n");
> 
>     return bResult;
> }
> 
> on WIn95, bResult is TRUE.
> 
> but WindowsNT 3.51 ... FALSE returned. and nNowWidth is 0 altime.
> If anyone has encountered this, please let me know.
> 
> 
> sky@mail.web-hyogo-or.jp
> 





| Вернуться в корень Архива |