<?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[ressource laden in winmain...]]></title><description><![CDATA[<p>hi leute!<br />
ich hab ein win32 application ich bin jetzt drauf gekommen das ich eine GUI brauche! wo ich in einen textfeld was reinschreiben will, hab no 1 kombinationsfeld!<br />
ich hab ne ressource gemacht u win mein win 32 application hinzugefügt! wie kann ich das ding in int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow) laden???<br />
da braucht man ja kein mfc oder?</p>
<p>wie kann werte von dem kombinationsfeld und einem eingabe feld in einen std::string speichern? hab da 3 elemente in dem kobinationsfeld: 0676, 0650, 0699! und im eingabefeld eine 8 stellige nummer....</p>
<p>cu!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/81526/ressource-laden-in-winmain</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 17:07:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/81526.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Aug 2004 23:34:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ressource laden in winmain... on Sun, 01 Aug 2004 23:34:30 GMT]]></title><description><![CDATA[<p>hi leute!<br />
ich hab ein win32 application ich bin jetzt drauf gekommen das ich eine GUI brauche! wo ich in einen textfeld was reinschreiben will, hab no 1 kombinationsfeld!<br />
ich hab ne ressource gemacht u win mein win 32 application hinzugefügt! wie kann ich das ding in int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow) laden???<br />
da braucht man ja kein mfc oder?</p>
<p>wie kann werte von dem kombinationsfeld und einem eingabe feld in einen std::string speichern? hab da 3 elemente in dem kobinationsfeld: 0676, 0650, 0699! und im eingabefeld eine 8 stellige nummer....</p>
<p>cu!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/573007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573007</guid><dc:creator><![CDATA[coder1]]></dc:creator><pubDate>Sun, 01 Aug 2004 23:34:30 GMT</pubDate></item><item><title><![CDATA[Reply to ressource laden in winmain... on Mon, 02 Aug 2004 07:19:29 GMT]]></title><description><![CDATA[<p>coder1 schrieb:</p>
<blockquote>
<p>wie kann ich das ding in int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow) laden???<br />
da braucht man ja kein mfc oder?</p>
</blockquote>
<p>Nein, das geht mit <a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/createdialog.asp" rel="nofollow">CreateDialog</a> bzw. <a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/dialogbox.asp" rel="nofollow">DialogBox</a> (je nach dem, ob der Dialog modal sein soll, oder nicht)</p>
<p>coder1 schrieb:</p>
<blockquote>
<p>wie kann werte von dem kombinationsfeld und einem eingabe feld in einen std::string speichern? hab da 3 elemente in dem kobinationsfeld: 0676, 0650, 0699!</p>
</blockquote>
<p>Ist das eine <a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/comboboxes/comboboxes.asp" rel="nofollow">ComboBox</a> oder eine <a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listboxes/listboxes.asp" rel="nofollow">ListBox</a>?</p>
<p>coder1 schrieb:</p>
<blockquote>
<p>und im eingabefeld eine 8 stellige nummer...</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindowtext.asp" rel="nofollow">GetWindowText</a> oder <a href="http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/DialogBoxes/DialogBoxReference/DialogBoxFunctions/GetDlgItemInt.asp" rel="nofollow">GetDlgItemInt</a> sollte das sein, was du brauchst. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/573080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573080</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 02 Aug 2004 07:19:29 GMT</pubDate></item><item><title><![CDATA[Reply to ressource laden in winmain... on Mon, 02 Aug 2004 22:11:16 GMT]]></title><description><![CDATA[<blockquote>
<p>Nein, das geht mit CreateDialog bzw. DialogBox (je nach dem, ob der Dialog modal sein soll, oder nicht)</p>
</blockquote>
<p>modal???</p>
<p>ansatz:</p>
<pre><code class="language-cpp">DialogBox(hinst, MAKEINTRESOURCE(DLG_DELETEITEM), hwnd, (DLGPROC)DeleteItemProc)
</code></pre>
<p>was ist MAKEINTRESOURCE...verlangt ja die id der dialogbox im ressourceeditor? was sind die anderen parameter?<br />
hinst = Handle zum module?<br />
MAKEINTRESOURCE = Pointer auf die Ressource?<br />
hwnd = Handle zum fenster!<br />
(DLGPROC)DeleteItemProc = Pointer zur Dialogbox?</p>
<p>naja etwas schwierig mit den begriffen...vielleicht kann einer besser erklären!?</p>
<blockquote>
<p>Ist das eine ComboBox oder eine ListBox?</p>
</blockquote>
<p>brauche ne combobox!</p>
<p>ich will mein winapi programm als klasse aufbauen....könnt ihr mir mal ein gutes beispiel zeigen, hab noch kaum winapi progs gesehn als klasse!?</p>
<p>cu <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="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/573862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573862</guid><dc:creator><![CDATA[coder1]]></dc:creator><pubDate>Mon, 02 Aug 2004 22:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to ressource laden in winmain... on Tue, 03 Aug 2004 07:31:03 GMT]]></title><description><![CDATA[<p>coder1 schrieb:</p>
<blockquote>
<p>modal???</p>
</blockquote>
<blockquote>
<p>When creating the modal dialog box, the system makes it the active window. The dialog box remains active until the dialog box procedure calls the EndDialog function or the system activates a window in another application. Neither the user nor the application can make the owner window active until the modal dialog box is destroyed.<br />
[...]<br />
A modeless dialog box neither disables the owner window nor sends messages to it. When creating the dialog box, the system makes it the active window, but the user or the application can change the active window at any time. If the dialog box does become inactive, it remains above the owner window in the Z order, even if the owner window is active.</p>
</blockquote>
<p>coder1 schrieb:</p>
<blockquote>
<p>was ist MAKEINTRESOURCE...verlangt ja die id der dialogbox im ressourceeditor?</p>
</blockquote>
<p>Das ist ein <a href="http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Resources/IntroductiontoResources/ResourceReference/ResourceMacros/MAKEINTRESOURCE.asp" rel="nofollow">Marko</a>:</p>
<blockquote>
<p>The MAKEINTRESOURCE macro converts an integer value to a resource type compatible with the resource-management functions. This macro is used in place of a string containing the name of the resource.</p>
</blockquote>
<p>coder1 schrieb:</p>
<blockquote>
<p>was sind die anderen parameter?</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/dialogbox.asp" rel="nofollow">Hier</a> sind doch die ganzen Parameter genau erklärt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
<p>coder1 schrieb:</p>
<blockquote>
<p>brauche ne combobox!</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/comboboxes/aboutcomboboxes.asp" rel="nofollow">Hier</a> solltest du eigentlich die nötigen Infos finden <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>
<p>coder1 schrieb:</p>
<blockquote>
<p>ich will mein winapi programm als klasse aufbauen....könnt ihr mir mal ein gutes beispiel zeigen, hab noch kaum winapi progs gesehn als klasse!?</p>
</blockquote>
<p>Also das mit der eigenen Fensterklasse würde ich mir bei deinem Kenntnisstand ganz schnell wieder aus dem Kopf schlagen - also entweder nimmst du eine fertige Klassenbibliothek, oder nimmst eben die WinAPI, so wie sie ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/573962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/573962</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 03 Aug 2004 07:31:03 GMT</pubDate></item></channel></rss>