Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.01.06;
Скачать: CL | DM;

Вниз

чем можно заменить сообщение BM_SETIMAGE   Найти похожие ветки 

 
Diamond Cat ©   (2002-11-18 00:17) [0]

чем можно заменить сообщение BM_SETIMAGE, дело в том что в winXP и в 2000 это сообщение не поддерживается, или как подменить HDC у какого-либо контрола


 
Игорь Шевченко ©   (2002-11-18 10:41) [1]

BM_SETIMAGE
An application sends a BM_SETIMAGE message to associate a new image (icon or bitmap) with the button.

To send this message, call the SendMessage function with the following parameters.

SendMessage(
(HWND) hWnd, // handle to destination window
BM_SETIMAGE, // message to send
(WPARAM) wParam, // image type
(LPARAM) lParam // handle to the image (HANDLE)
);

Requirements
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winuser.h; include Windows.h.

Как прикажешь тебя понимать, Саид ?


 
Diamond Cat ©   (2002-11-18 14:35) [2]

это действительно круто но, у меня в хелпе написано только
An application sends a BM_SETIMAGE message to associate a new image (icon or bitmap) with the button.

BM_SETIMAGE
wParam = (WPARAM) fImageType; // image-type flag
lParam = (LPARAM) (HANDLE) hImage; // handle of the image


Parameters

fImageType

Value of wParam. Specifies the type of image to associate with the button. This parameter can be one of the following values:
IMAGE_BITMAP
IMAGE_ICON

hImage
Value of lParam. Identifies the image to associate with the button. и нажав на quick info я получаю
ответ что
win nt yes
win95 yes
win32s no
и последний довод эта прога работала без проблем по 98 но отказывается работать под XP
А у тебя какой дельфи, Сухов?


 
MBo ©   (2002-11-18 14:59) [3]

win32s - это подсистема Window 3.1, к 2K и XP отношения не имеет


 
Игорь Шевченко ©   (2002-11-18 15:06) [4]

У меня D5, D6 - проблем не наблюдал :-) Под WinNT и WinXP



Страницы: 1 вся ветка

Текущий архив: 2003.01.06;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.017 c
7-15340
Дмитрий К.К.
2002-10-25 15:58
2003.01.06
Добавить в избранное: Internet Explorer


3-14943
Z-Yuri
2002-12-11 21:35
2003.01.06
Снова о сортировке строк, как чисел.


3-14914
old_mole
2002-12-12 11:52
2003.01.06
Помогите с Report`ом


1-15144
Fantom
2002-12-23 15:54
2003.01.06
проблемы с rich edit


4-15354
Cosmic
2002-11-17 22:13
2003.01.06
Как создать меню на форме?