<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[listview umrandung]]></title><description><![CDATA[<p>Hi ich hätte gerne meine listview in schöner optik.</p>
<p>wie hier:</p>
<p><a href="http://www.codeproject.com/listctrl/listview.asp" rel="nofollow">http://www.codeproject.com/listctrl/listview.asp</a></p>
<p>leider bekomme ich es immer nur im flat-style hin. Kann mir einer von euch helfen??</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;commctrl.h&gt;
#pragma comment(lib,&quot;Comctl32.lib&quot;)
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
HINSTANCE Inst;
int i = 50; 
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 
HWND hwnd, hText, hwndEditAlt, g_hText, hListView; 

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, 
                   PSTR szCmdLine, int iCmdShow) 
{ 
Inst = hInstance;

    static TCHAR szAppName[] = TEXT(&quot;Progress Bar&quot;); 
    MSG msg; 

	WNDCLASSEX wndclass;
	HWND hWnd = NULL;
	memset(&amp;wndclass,'\0',sizeof(WNDCLASSEX));
	wndclass.lpfnWndProc = (WNDPROC)WndProc;
	wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
	wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
	wndclass.hIcon = LoadIcon(NULL,IDI_WINLOGO);
	wndclass.hInstance = hInstance;
	wndclass.lpszClassName = szAppName;
	wndclass.style = CS_VREDRAW | CS_HREDRAW;
	wndclass.cbSize = sizeof(WNDCLASSEX);

RegisterClassEx(&amp;wndclass);

    hwnd = CreateWindowEx(NULL,szAppName,TEXT(&quot;LeWi-&quot;),WS_OVERLAPPEDWINDOW,
							   CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
							   NULL,NULL,hInstance,NULL);

    ShowWindow(hwnd, iCmdShow); 
    UpdateWindow(hwnd); 

    while(GetMessage(&amp;msg, NULL, 0, 0)) 
    { 
    TranslateMessage(&amp;msg); 
    DispatchMessage(&amp;msg); 
    } 

    return msg.lParam; 
} 

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 
{ 
	LVCOLUMN lvColumn;
	INITCOMMONCONTROLSEX icc;

    switch (message) 
    { 
    case WM_CREATE: 

   icc.dwSize = sizeof(INITCOMMONCONTROLSEX);
		icc.dwICC = ICC_LISTVIEW_CLASSES|ICC_WIN95_CLASSES;
		if (!InitCommonControlsEx(&amp;icc)) 
			MessageBox(NULL,&quot;Nie uda³o siê wywo³anie InitCommonControlsEx&quot;,&quot;Error&quot;,MB_OK);

hListView = CreateWindowEx(NULL,WC_LISTVIEW,&quot;ListView&quot;,LVS_AUTOARRANGE|LVS_REPORT|WS_CHILD|WS_VISIBLE,
								   0,0,300,300,
								   hwnd,0,Inst,NULL);
lvColumn.mask = LVCF_TEXT|LVCF_WIDTH;
		lvColumn.cx = 150;
		lvColumn.pszText = &quot;Elementy&quot;;
		lvColumn.cchTextMax = strlen(&quot;Elementy&quot;);
		ListView_InsertColumn(hListView,0,&amp;lvColumn);
ListView_SetExtendedListViewStyle(hListView,LVS_EX_UNDERLINEHOT|LVS_EX_ONECLICKACTIVATE|LVS_EX_TRACKSELECT);
    return 0; 

    case WM_DESTROY: 
        PostQuitMessage (0); 
    return 0; 
    } 

return DefWindowProc (hwnd, message, wParam, lParam); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/173058/listview-umrandung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 06:34:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173058.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Feb 2007 13:42:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to listview umrandung on Sun, 11 Feb 2007 13:42:25 GMT]]></title><description><![CDATA[<p>Hi ich hätte gerne meine listview in schöner optik.</p>
<p>wie hier:</p>
<p><a href="http://www.codeproject.com/listctrl/listview.asp" rel="nofollow">http://www.codeproject.com/listctrl/listview.asp</a></p>
<p>leider bekomme ich es immer nur im flat-style hin. Kann mir einer von euch helfen??</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;commctrl.h&gt;
#pragma comment(lib,&quot;Comctl32.lib&quot;)
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
HINSTANCE Inst;
int i = 50; 
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 
HWND hwnd, hText, hwndEditAlt, g_hText, hListView; 

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, 
                   PSTR szCmdLine, int iCmdShow) 
{ 
Inst = hInstance;

    static TCHAR szAppName[] = TEXT(&quot;Progress Bar&quot;); 
    MSG msg; 

	WNDCLASSEX wndclass;
	HWND hWnd = NULL;
	memset(&amp;wndclass,'\0',sizeof(WNDCLASSEX));
	wndclass.lpfnWndProc = (WNDPROC)WndProc;
	wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
	wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
	wndclass.hIcon = LoadIcon(NULL,IDI_WINLOGO);
	wndclass.hInstance = hInstance;
	wndclass.lpszClassName = szAppName;
	wndclass.style = CS_VREDRAW | CS_HREDRAW;
	wndclass.cbSize = sizeof(WNDCLASSEX);

RegisterClassEx(&amp;wndclass);

    hwnd = CreateWindowEx(NULL,szAppName,TEXT(&quot;LeWi-&quot;),WS_OVERLAPPEDWINDOW,
							   CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
							   NULL,NULL,hInstance,NULL);

    ShowWindow(hwnd, iCmdShow); 
    UpdateWindow(hwnd); 

    while(GetMessage(&amp;msg, NULL, 0, 0)) 
    { 
    TranslateMessage(&amp;msg); 
    DispatchMessage(&amp;msg); 
    } 

    return msg.lParam; 
} 

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 
{ 
	LVCOLUMN lvColumn;
	INITCOMMONCONTROLSEX icc;

    switch (message) 
    { 
    case WM_CREATE: 

   icc.dwSize = sizeof(INITCOMMONCONTROLSEX);
		icc.dwICC = ICC_LISTVIEW_CLASSES|ICC_WIN95_CLASSES;
		if (!InitCommonControlsEx(&amp;icc)) 
			MessageBox(NULL,&quot;Nie uda³o siê wywo³anie InitCommonControlsEx&quot;,&quot;Error&quot;,MB_OK);

hListView = CreateWindowEx(NULL,WC_LISTVIEW,&quot;ListView&quot;,LVS_AUTOARRANGE|LVS_REPORT|WS_CHILD|WS_VISIBLE,
								   0,0,300,300,
								   hwnd,0,Inst,NULL);
lvColumn.mask = LVCF_TEXT|LVCF_WIDTH;
		lvColumn.cx = 150;
		lvColumn.pszText = &quot;Elementy&quot;;
		lvColumn.cchTextMax = strlen(&quot;Elementy&quot;);
		ListView_InsertColumn(hListView,0,&amp;lvColumn);
ListView_SetExtendedListViewStyle(hListView,LVS_EX_UNDERLINEHOT|LVS_EX_ONECLICKACTIVATE|LVS_EX_TRACKSELECT);
    return 0; 

    case WM_DESTROY: 
        PostQuitMessage (0); 
    return 0; 
    } 

return DefWindowProc (hwnd, message, wParam, lParam); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1226846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1226846</guid><dc:creator><![CDATA[joes]]></dc:creator><pubDate>Sun, 11 Feb 2007 13:42:25 GMT</pubDate></item><item><title><![CDATA[Reply to listview umrandung on Sun, 11 Feb 2007 17:31:07 GMT]]></title><description><![CDATA[<p>der Link ist fuer pur WinApi warum verwendest du nicht das bsp. dessen link du angegeben hast da ist auch beschrieben wie es funktioniert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1226971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1226971</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 11 Feb 2007 17:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to listview umrandung on Sun, 11 Feb 2007 19:52:22 GMT]]></title><description><![CDATA[<p>Möchtest Du nur den Rahmen ändern? WS_EX_CLIENTEDGE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1227055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1227055</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 11 Feb 2007 19:52:22 GMT</pubDate></item></channel></rss>