
/******************************************************************************\
*       This is a part of the Microsoft Source Code Samples. 
*       Copyright (C) 1993 Microsoft Corporation.
*       All rights reserved. 
*       This source code is only intended as a supplement to 
*       Microsoft Development Tools and/or WinHelp documentation.
*       See these sources for detailed information regarding the 
*       Microsoft samples programs.
\******************************************************************************/


#define DID_ABOUT                   100

#define DID_SELECTWINDOW            200
#define DID_SELWINLIST              201
#define DID_SELWINWINDOW            202
#define DID_SELWINCLASS             203
#define DID_SELWINPARENT            204
#define DID_SELWINRECT              205
#define DID_SELWINSTYLE             206
#define DID_SELWINALLWINDOWS        207

#define DID_OUTPUT                  300
#define DID_OUTPUTWINDOW            301
#define DID_OUTPUTLINES             302
#define DID_OUTPUTCOM1              303
#define DID_OUTPUTFILE              304
#define DID_OUTPUTFILENAME          305

#define DID_MESSAGES                400
#define DID_MSGSLIST                401
#define DID_MSGSALL                 402
#define DID_MSGSNONE                403
#define DID_MSGSDDE                 404
#define DID_MSGSCLIP                405
#define DID_MSGSMOUSE               406
#define DID_MSGSNC                  407
#define DID_MSGSKEYBD               408
#define DID_MSGSBM                  409
#define DID_MSGSCB                  410
#define DID_MSGSEM                  411
#define DID_MSGSLB                  412
#define DID_MSGSSTM                 413
#define DID_MSGSUSER                414
#define DID_MSGSUNKNOWN             415

#define DID_OBJECTSEL               500
#define DID_OI                      501
#define DID_OBJECTSELTYPE           502    

#define ComboBox_AddString(hwndCtl, lpsz)       ((int)(DWORD)SendMessage((hwndCtl), CB_ADDSTRING, 0L, (LPARAM)(LPCTSTR)(lpsz)))
#define ComboBox_GetCurSel(hwndCtl)                 ((int)(DWORD)SendMessage((hwndCtl), CB_GETCURSEL, 0L, 0L))
#define ComboBox_SetCurSel(hwndCtl, index)          ((int)(DWORD)SendMessage((hwndCtl), CB_SETCURSEL, (WPARAM)(int)(index), 0L))
#define ComboBox_ResetContent(hwndCtl)          ((int)(DWORD)SendMessage((hwndCtl), CB_RESETCONTENT, 0L, 0L))

#define ListBox_AddString(hwndCtl, lpsz)            ((int)(DWORD)SendMessage((hwndCtl), LB_ADDSTRING, 0L, (LPARAM)(LPCTSTR)(lpsz)))
#define ListBox_GetCurSel(hwndCtl)                  ((int)(DWORD)SendMessage((hwndCtl), LB_GETCURSEL, 0L, 0L))
#define ListBox_SetCurSel(hwndCtl, index)           ((int)(DWORD)SendMessage((hwndCtl), LB_SETCURSEL, (WPARAM)(int)(index), 0L))
#define ListBox_ResetContent(hwndCtl)               ((BOOL)(DWORD)SendMessage((hwndCtl), LB_RESETCONTENT, 0L, 0L))
