
February 4th, 2003, 10:54 PM
|
|
Offensive Member
|
|
Join Date: Oct 2002
Location: in the perfect world
|
|
>>I was wondering how I can store what a user puts in an input box into a variable
Process the WM_COMMAND msg for the control
Different type of control have different msg's.
Code:
case WM_COMMAND:
idControl = GET_WM_COMMAND_ID( wParam, lParam) ;
switch(idControl)
{
case ID_INPUT_BOX:
//is a button
if(BN_CLICKED == HIWORD(wParam))
//is an edit
if (EN_CHANGE == HIWORD(wParam))
__________________
The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.
Frank Zappa
|