Click to See Complete Forum and Search --> : 2 questions (beginner level)


falcon1
February 19th, 2005, 05:59 AM
Hi.
I have 2 questions
1)How can I make my form non-sizeable while it has a border?
2)How can I get the ascii value of a char?
Thanks

NoHero
February 19th, 2005, 06:38 AM
1)How can I make my form non-sizeable while it has a border?

I think specifying WS_BORDER instead of WS_THICKFRAME will help.

2)How can I get the ascii value of a char?


char c = 'A';
int ascii_val = (int)c;
// Now ascii_val contains the Ascii value of the variable c which is 'A'

tomcant
February 19th, 2005, 06:47 AM
For the first question, try something like this for your windows style:
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX