<?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[[WINAPI] Statusbar]]></title><description><![CDATA[<p>Wie kann ich in ein Fenster eine Statusbar einbauen???<br />
PLS einfache Seite oder einfach erklärt...<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/102126/winapi-statusbar</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:19:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/102126.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Feb 2005 21:22:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [WINAPI] Statusbar on Tue, 22 Feb 2005 21:22:17 GMT]]></title><description><![CDATA[<p>Wie kann ich in ein Fenster eine Statusbar einbauen???<br />
PLS einfache Seite oder einfach erklärt...<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730107</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Tue, 22 Feb 2005 21:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Tue, 22 Feb 2005 21:30:04 GMT]]></title><description><![CDATA[<p>Warum lernst du nicht die Grundlagen? Sonst musst du ja bei jedem bisschen fragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730117</guid><dc:creator><![CDATA[:-((((]]></dc:creator><pubDate>Tue, 22 Feb 2005 21:30:04 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Tue, 22 Feb 2005 21:31:23 GMT]]></title><description><![CDATA[<p>Ich hab mir schon alle möglichen Turtorials durchgesehen und kapier nix...<br />
Des is überall einfach nur blöd beschrieben und nirgens gleich gemacht<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730118</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Tue, 22 Feb 2005 21:31:23 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Tue, 22 Feb 2005 22:20:15 GMT]]></title><description><![CDATA[<p>1.) Header-Datei &quot;commctrl.h&quot; einbinden<br />
2.) Import Library &quot;comctl32.lib&quot; einbinden<br />
3.) InitCommonControls oder InitCommonControlsEx aufrufen<br />
4.) CreateWindowEx mit STATUSCLASSNAME als Fensterklassenname aufrufen<br />
5.) Mit SendMessage SB_XXX Nachrichten an das Status-Fenster senden um dessen Einstellungen zu ändern</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730141</guid><dc:creator><![CDATA[algorithmus]]></dc:creator><pubDate>Tue, 22 Feb 2005 22:20:15 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 14:16:46 GMT]]></title><description><![CDATA[<p>Das mit den &quot;SB_XXX&quot; musst du mir mal genauer erklären. Welche Messages muss ich da genau schicken??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730584</guid><dc:creator><![CDATA[Timme]]></dc:creator><pubDate>Wed, 23 Feb 2005 14:16:46 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 14:27:04 GMT]]></title><description><![CDATA[<p>guck doch in die hilfe.</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/status/messages/sb_getborders.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/status/messages/sb_getborders.asp</a></p>
<p>auf der linken seite stehen die möglichen nachrichten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730599</guid><dc:creator><![CDATA[algorithmus]]></dc:creator><pubDate>Wed, 23 Feb 2005 14:27:04 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 14:28:33 GMT]]></title><description><![CDATA[<p>sorry das Problem hat sich schon gelöst:</p>
<p><a href="http://www.willemer.de/informatik/windows/winstatb.htm" rel="nofollow">http://www.willemer.de/informatik/windows/winstatb.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/730601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730601</guid><dc:creator><![CDATA[Timme]]></dc:creator><pubDate>Wed, 23 Feb 2005 14:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 17:52:42 GMT]]></title><description><![CDATA[<p>Nein, bei mir nicht...<br />
Bei mir wird die Statusbar nicht angezeigt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Und beim Menüpunkt About kommt auch nicht das richtige.<br />
Und er hat jetzt beim Kompilieren einen Ressource-Fehler :(((<br />
Hier mal mein Code:</p>
<p>main.cpp</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;resource.h&quot;
#include &lt;commctrl.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;Kassensystem&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = MAKEINTRESOURCE(IDR_MYMENU);                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Kassensystem&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

HWND CreateStatusBar(HWND hWnd, UINT ResID)
{
    HWND hWndStatus;
    HINSTANCE hInst;

	hWndStatus = CreateWindowEx (0L, // extended style
		STATUSCLASSNAME, &quot;&quot;,
		WS_CHILD | WS_BORDER | WS_VISIBLE | SBS_SIZEGRIP, // window styles
		0, 0, 0, 0, // x, y, width, height
		hWnd, (HMENU)ResID, hInst, NULL);
	return hWndStatus;
}

BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
    switch(Message)
    {
        case WM_INITDIALOG:
            return TRUE;
        case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDOK:
                    EndDialog(hwnd, IDOK);
                    break;
            }
            break;
        default:
            return FALSE;
    }
    return TRUE;
    //DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(ID_HELP_ABOUT), hwnd, AboutDlgProc);
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    static UINT Id;
    HWND hwndStatus;
    HWND hwndList;

    switch (message)                  /* handle the messages */
    {
        case WM_SIZE:
            RECT rSB;
            GetWindowRect(hwndStatus, &amp;rSB);
            MoveWindow (hwndStatus, 0, HIWORD(lParam) - 10, LOWORD(lParam), HIWORD(lParam), TRUE);
           // MoveWindow(hwndList, 0, rcl.bottom - rcl.top, LOWORD(lParam), HIWORD(lParam) - (rSB.bottom - rSB.top) + 1, TRUE );
        break;

        case WM_COMMAND:
            Id = LOWORD(wParam); 
            switch (Id) {
                case ID_HELP_\1:
                {
                    int ret = DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE(ID_HELP_ABOUT), hwnd, AboutDlgProc);
                    if(ret == IDOK){
                        MessageBox(hwnd, &quot;Dialog exited with IDOK.&quot;, &quot;Notice&quot;, MB_OK | MB_ICONINFORMATION);
                    }  
                    else if(ret == -1){
                        MessageBox(hwnd, &quot;Dialog failed!&quot;, &quot;Error&quot;, MB_OK | MB_ICONINFORMATION);
                    }
                }
                break;

                case ID_DATEI_OPEN:
                    break;
                case ID_DATEI_EXIT:
                    PostMessage(hwnd, WM_CLOSE, 0, 0);
                    break;
                case ID_KS_LOGIN:
                    EnableMenuItem(GetMenu(hwnd), ID_KS_LOGIN, MF_GRAYED);
                    EnableMenuItem(GetMenu(hwnd), ID_KS_LOGOUT, MF_ENABLED);
                    break;
                case ID_KS_LOGOUT:
                    EnableMenuItem(GetMenu(hwnd), ID_KS_LOGOUT, MF_GRAYED);
                    EnableMenuItem(GetMenu(hwnd), ID_KS_LOGIN, MF_ENABLED);
                    break;
            }    
            break;

        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}

void SetStatusText(HWND hWndStatus, char *Text)
{
    HWND hwnd;
    HWND hStatus;
    hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL,
WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0,
hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);

	SendMessage (hWndStatus, SB_SETTEXT, 0, (LPARAM)Text);

static int aWidths [2] = {200,300};
   SendMessage (hWndStatus, SB_SETPARTS, 2, (LPARAM)aWidths); 
   SendMessage (hWndStatus, SB_SETTEXT, 0, (LPARAM)&quot;Linkes Feld&quot;);
   SendMessage (hWndStatus, SB_SETTEXT, 1, (LPARAM)&quot;noch n Feld&quot;);

}
</code></pre>
<p>resource.h</p>
<pre><code class="language-cpp">#define IDR_MYMENU 101

#define IDC_MAIN_STATUS 2001

#define IDC_STATIC 5001

#define ID_DATEI_OPEN 9001
#define ID_DATEI_SAVEAS 9002
#define ID_DATEI_EXIT 9003
#define ID_KS_LOGIN 9004
#define ID_KS_LOGOUT 9005
#define ID_HELP_ABOUT 9006
</code></pre>
<p>menu.rc</p>
<pre><code class="language-cpp">#include &quot;resource.h&quot;

IDR_MYMENU MENU DISCARDABLE 
BEGIN
    POPUP &quot;&amp;Datei&quot;
    BEGIN
        MENUITEM &quot;Ö&amp;ffnen...&quot;,                  ID_DATEI_OPEN
        MENUITEM &quot;&amp;Speichern als...&quot;,           ID_DATEI_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM &quot;&amp;Beenden&quot;,                    ID_DATEI_EXIT
    END
    POPUP &quot;&amp;Kassensystem&quot;
    BEGIN
        MENUITEM &quot;Log&amp;in&quot;,                  ID_KS_LOGIN
        MENUITEM &quot;Log&amp;out&quot;,                  ID_KS_LOGOUT, GRAYED
    END
    POPUP &quot;&amp;Help&quot;
    BEGIN
        MENUITEM &quot;&amp;About...&quot;,                  ID_HELP_ABOUT
    END
END
</code></pre>
<p>about.rc</p>
<pre><code class="language-cpp">#include &quot;resource.h&quot;

ID_HELP_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION &quot;My About Box&quot;
FONT 8, &quot;MS Sans Serif&quot;
BEGIN
    DEFPUSHBUTTON &quot;&amp;OK&quot;,IDOK,174,18,50,14
    GROUPBOX &quot;About this program...&quot;,IDC_STATIC,7,7,225,52
    CTEXT &quot;An example program showing how to use Dialog Boxes\r\n\r\nby theForger&quot;,
    IDC_STATIC,16,18,144,33
END
</code></pre>
<p>MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730835</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 17:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 17:54:48 GMT]]></title><description><![CDATA[<p>Punkt 3 hast du schonmal nicht beachtet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730840</guid><dc:creator><![CDATA[punkt.]]></dc:creator><pubDate>Wed, 23 Feb 2005 17:54:48 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 17:57:19 GMT]]></title><description><![CDATA[<p>Hab es nicht nach algorithmus gemacht, sondern nach einer Beschreibung...<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730844</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 17:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:00:24 GMT]]></title><description><![CDATA[<p>ist mir doch scheiss egal. ich dachte du willst hilfe. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/730849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730849</guid><dc:creator><![CDATA[punkt.]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:02:23 GMT]]></title><description><![CDATA[<p>Brauchst ned gleich wild werden...<br />
Hab die Zeilen einfach ned verstanden<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730852</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:07:00 GMT]]></title><description><![CDATA[<p>ok dann fiel spaß noch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/730857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730857</guid><dc:creator><![CDATA[punkt.]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:08:31 GMT]]></title><description><![CDATA[<p>???<br />
Was is denn jetzt???<br />
Nur weil ich mich ned auskenn ???<br />
Naja, ich hoff ich finde wen anderen, der mir helfen kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730859</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:35:24 GMT]]></title><description><![CDATA[<p>Keiner wird dir helfen.<br />
Du musst schon selber lernen, für 2000 Scheine mach ich dir das <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/730878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730878</guid><dc:creator><![CDATA[§51]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:36:44 GMT]]></title><description><![CDATA[<p>Was meinst du mach ich???<br />
Ich durchforste das INEt und alles was man bekommst sind dumme antowortren von ForenUsern, Sexseiten, Turtaorials in Russisch und nichts brauchbarens...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730879</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:42:28 GMT]]></title><description><![CDATA[<p><a href="http://www.win-api.de/" rel="nofollow">http://www.win-api.de/</a><br />
<a href="http://www.winapi.net/" rel="nofollow">http://www.winapi.net/</a></p>
<p>So wenn das nicht hilft:</p>
<p><a href="http://www.raus.de/crashme" rel="nofollow">www.raus.de/crashme</a></p>
<p>oder aber</p>
<p>1000 Scheine in Bar auf mein Konto</p>
<p>Rabatt für Freunde <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/730885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730885</guid><dc:creator><![CDATA[§51]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 18:43:23 GMT]]></title><description><![CDATA[<p>du bemühst dich überhaupt nicht. du hast den tipp bekommen das du punkt 3 noch beachten musst. was klappt an der umsetzung von punkt 3 nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730887</guid><dc:creator><![CDATA[hmmmmmmm]]></dc:creator><pubDate>Wed, 23 Feb 2005 18:43:23 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 19:13:24 GMT]]></title><description><![CDATA[<p><a href="http://WA.de" rel="nofollow">WA.de</a> ... da is weder menü noch statusbar...oder ich bin blind<br />
.net ... naja, das is noch weniger als .de</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730913</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 19:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 19:13:26 GMT]]></title><description><![CDATA[<p>Regt euch ab, kerine Beleidungen!!!</p>
<p>Du hast in WndProc (weiß jetzt nicht mehr, wie du das genannt hast. Halt dam Callback, des Windows, im welchem die Statusbar angezeigt werden soll) eine wichtige Sache vergessen:</p>
<p>Es muss nämlich erst die Statusbar initialiesiert werden:</p>
<p>Diese muss initialiesiert werden, sobald du ein Fenster von dem Typ &quot;szClassName&quot; erzeugst.</p>
<p>Dann wird die Message WM_CREATE aufgerufen, in den ode musst du also folgemdes einfügen:</p>
<pre><code class="language-cpp">case WM_CREATE:
createstutusbar(hWnd, ....);
return 0;
</code></pre>
<p>Diesen Code solltest du nicht komplett übernehemn, wiel ich nicht die Namen verwebdet hab, die du verwendet hast. Aber ich hoffe du verstehst was ich dir mit diesem Beitrag sagen wollte...........</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730914</guid><dc:creator><![CDATA[Timme]]></dc:creator><pubDate>Wed, 23 Feb 2005 19:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 19:43:27 GMT]]></title><description><![CDATA[<p>Vielen Dank, es funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Jetzt hab ich aber leider noch den Fehler, das er irgendwie die Ressource nimmer kennt (eh Fehler von vorher)<br />
Code:<br />
Line 4 in file Dev-Cpp\bin\windres.exe: about.rc : parse error<br />
about.rc müsste eh vorher drinnen sein (im Beitrag)</p>
<p>Zusätzlich kommt jetzt noch ein Schönheitsfehler <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Die Statusbar wird nicht mitvergrößert/kleinert...<br />
Code dazu:</p>
<pre><code class="language-cpp">MoveWindow(hwndList, 0, rcl.bottom - rcl.top, LOWORD(lParam), HIWORD(lParam) - (rSB.bottom - rSB.top) + 1, TRUE );
</code></pre>
<p>Aber beim Kompilieren kennt er rcl ned <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Für was steht das denn??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730918</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 19:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 19:46:01 GMT]]></title><description><![CDATA[<p>Ein Tip: Les dir mal besser den Code durch!! Den Fehler, bei dem ich dir eben geholfen hab, hättest du auch ohne meine Hilfe lösen können!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730951</guid><dc:creator><![CDATA[Timme]]></dc:creator><pubDate>Wed, 23 Feb 2005 19:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 20:09:03 GMT]]></title><description><![CDATA[<p>DDSD schrieb:</p>
<blockquote>
<p>Aber beim Kompilieren kennt er rcl ned <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Für was steht das denn??</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> rcl ist wohl der name einer RECT-instanz.. -&gt; <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/rectangl_6cqa.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/rectangl_6cqa.asp</a></p>
<p>zum parse error: probier mal</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
</code></pre>
<p>in der .rc-datei</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730970</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Wed, 23 Feb 2005 20:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 20:09:56 GMT]]></title><description><![CDATA[<p>Hab es schon mit RECT rcl; versucht aber es funktioniert nicht.<br />
Es gibt zwar keinen fehler aus, aber es geht ned <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Wegen dem parse error, danke für den Tipp, hab jetzt gleich einen 2. Fehler damit gelöst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/730972</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/730972</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 20:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 20:29:34 GMT]]></title><description><![CDATA[<p>rcl (vom Typ RECT) ist für dich unwichtig, da das wohl ein Auszug aus einem anderen Programm ist. Der Autor hat dort eine ListBox verwendet.</p>
<pre><code class="language-cpp">MoveWindow(&lt;IwndowHandle&gt;, &lt;linke-Ecke&gt;, &lt;oberer-Ecke&gt;, &lt;rechte-Ecke&gt;, &lt;untere-Ecke&gt;, TRUE );
</code></pre>
<p>so müsste die Syntax lauten</p>
<p>RECT ist eine Datenstruktur:</p>
<pre><code class="language-cpp">struct RECT
{
int left;
int top;
int right;
int bottom;
};
</code></pre>
<p>so müsste sie lauten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/731003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/731003</guid><dc:creator><![CDATA[Timme]]></dc:creator><pubDate>Wed, 23 Feb 2005 20:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to [WINAPI] Statusbar on Wed, 23 Feb 2005 21:25:02 GMT]]></title><description><![CDATA[<p>Auf das bin ich ja gott sei dank auch schon gekommen, aber ich war noch auf dem Holzweg <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Aber hab es wieder einmal doch geschafft *gg*</p>
<p>Aber jetzt bin ich draufgekommen, das ich auf meinem PC keine comctl32.lib habe...<br />
Woher bekomme ich die???<br />
MFG DDSD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/731015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/731015</guid><dc:creator><![CDATA[DDSD]]></dc:creator><pubDate>Wed, 23 Feb 2005 21:25:02 GMT</pubDate></item></channel></rss>