WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

SetWindowTheme on a Listview, a very nice article on how to use a Listview and the Focus is Windows Theme

ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 873
Member No.: 5019
Joined: 13-May 07


Hi
I have found a nice article it use a Listview and the Focus is Windows Theme

CODE
HRESULT SetWindowTheme(
HWND hwnd,
LPCWSTR pszSubAppName,
LPCWSTR pszSubIdList
);

user posted image

Edit

Use u SetwindowTheme for a listview must you add this line with SendMessage LVM_SETEXTENDEDLISTVIEWSTYLE

invoke SetWindowTheme,hList,uni$ ("Explorer"), NULL
invoke SendMessage,hList, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_DOUBLEBUFFER



Regards,

PMUsers Website
Top
Gunner
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 210
Member No.: 27608
Joined: 11-October 09


Do you have a link to the article?
PMEmail PosterUsers Website
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 873
Member No.: 5019
Joined: 13-May 07


This works for

CODE
   TextBox
   RichTextBox
   HScrollBar
   VScrollBar
   ProgressBar
   TabControl (Partially)
   MainMenu
   ContextMenu
   ComboBox
   DataGrid
   listBox
   listView
   TreeView
   DateTimePicker
   MonthCalendar
   Splitter
   TrackBar
   StatusBar
   ToolBar
   TreeView
   listView
   Button
   Groupbox (Partially)
PMUsers Website
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 732
Member No.: 773
Joined: 10-November 04


Thank you, ragdog!
This API is implemented in UxTheme.dll, so it's not supported in Win2k and earlier.
It's great that new look works even on custom-coloured ListView.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google