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

Вниз

Вопрос к тем кто использует в своих программах темы Win XP.   Найти похожие ветки 

 
first_aid ©   (2003-01-27 06:00) [0]

Приветствую.

Вопрос собственно вот в чем: прикрутил я к своей проге манифест, все красиво все стандартные контролы отрисовываются в соответствии с темой, но есть одно «но», TListView c ViewStyle = vsReport, вызывает исключение EAccessViolation, причем именно когда ViewStyle = vsReport, во всех других случаях все нормально.

Подскажите в чем грабли и как их убрать?


 
Slava ©   (2003-01-27 10:25) [1]

- If you use TListView in vsReport mode, you will need to make a change to
your VCL sources, or else you"ll get access violations. Copy ComCtrls.pas
to your project"s directory (or some other directory in your Search Path
that has precedence over delphi\source\vcl) and change these two lines:

if FImageIndex <> -1 then
fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES;

to:

if FImageIndex <> -1 then
fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES
else
mask := mask and not LVCF_IMAGE;

- If you use TStatusBar, the size grip part may get corrupted when you resize
the form at run-time. You can work around this by creating an OnResize
event handler on the TStatusBar with this code:

procedure TForm1.StatusBar1Resize(Sender: TObject);
begin
if StatusBar1.HandleAllocated then
InvalidateRect(StatusBar1.Handle, nil, True);
end;

- For more information, see:
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/userex/overview/cookbook.asp



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

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

Наверх




Память: 0.47 MB
Время: 0.025 c
1-15637
ЮРИЙ_К
2003-01-29 08:55
2003.02.06
Снимок текстового экрана в JPG ???


4-15993
vicheslav
2002-12-23 13:57
2003.02.06
Как вызвать извлечение сёмного устройства?


3-15416
diww
2003-01-21 20:49
2003.02.06
Как програмно переиндексировать файл?


1-15711
VLL
2003-01-27 17:54
2003.02.06
Запуск внешнего приложения


9-15384
Alexeyk
2002-08-23 08:03
2003.02.06
Создание видеоэффектов в Дельфи