Click to See Complete Forum and Search --> : Text Box


DrIdiot
October 17th, 2004, 01:44 PM
How do I get a text box in windows API in a dialog box?

This is my RC file:

#include <windows.h>
#include "resource.h"

IDI_MYICON ICON "icon.ico"

IDD_CONSTANT DIALOG DISCARDABLE 0, 0, 300, 200
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Graph Constant Function"
FONT 8, "Times New Roman"
BEGIN
DEFPUSHBUTTON "&OK", IDOK, 174, 18, 50, 14
PUSHBUTTON "&Cancel", IDCANCEL, 174, 35, 50, 14
// GROUPBOX "Constant Toolkit Function", IDC_STATIC, 7, 7, 225, 52
// CTEXT "f(x) = 0\ny = Af(Bx + C) + D", IDC_STATIC, 16, 18, 144, 33
END


(the last two are commented out because my compiler gave me a parse error for them. if you know why, help would also be appreciated)

thanks!

gstercken
October 17th, 2004, 05:32 PM
You're probably looking for EDITTEXT. However, how are you creating those rc files? Why don't you use the resource editor for that?

DrIdiot
October 17th, 2004, 07:07 PM
I dont have MS visual C++.

But I got it to work now.

Thanks a lot!