WWW.ИСХОДНИКИ.РУ cpp.sources.ru
java.sources.ru web.sources.ru soft.sources.ru
jdbc.sources.ru asp.sources.ru api.sources.ru

  Форум на исходниках
  C / C++ / Visual C++
  checkboxes in listbox with WIN32 API

СПРОСИТЬ  ОТВЕТИТЬ
профайл | регистрация | faq

Автор Тема:   checkboxes in listbox with WIN32 API
gera1234 опубликован 26-08-2001 00:37 MSK   Click Here to See the Profile for gera1234   Click Here to Email gera1234  
Привет всем!

Хотелось бы список с чекбоксами сделать используя только API. Как вариант owner-drawn и все самому рисовать, но может быть есть способ попроще? Какой-нибудь стиль хитрый или еще что-нибудь?

Заранее спасибо всем кто ответит.

Elizarov опубликован 31-08-2001 04:44 MSK     Click Here to See the Profile for Elizarov  Click Here to Email Elizarov     
Extended list view styles
List view control styles have been extended. To use these new styles, use the LVM_SETEXTENDEDLISTVIEWSTYLE message or one of the ListView_SetExtendedListViewStyle or ListView_SetExtendedListViewStyleEx macros.

LVS_EX_CHECKBOXES <<<<<<<<<!!!!!!!!!!
Version 4.70. Enables check boxes for items in a list view control. Effectively, when set to this style, the control will create and set a state image list with two images using DrawFrameControl. State image 1 is the unchecked box and state image 2 is the checked box. Setting the state image to zero removes the checkbox altogether. Check boxes are visible and functional with all list view modes. You can obtain the state of the check box for a given item with ListView_GetCheckState. To set the check state, use ListView_SetCheckState.

Elizarov опубликован 31-08-2001 04:48 MSK     Click Here to See the Profile for Elizarov  Click Here to Email Elizarov     
Или тебе для ListBox'a ? Поищи подобное в MSDN Lib.

СПРОСИТЬ  ОТВЕТИТЬ
Перейти:


E-mail | WWW.ИСХОДНИКИ.RU

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.