// ---------------------------------------------------------------------------
// global variables
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// global variables
// ---------------------------------------------------------------------------
if ( cmd == 0 || cmd == 1 ) // menu or accel - use id
{
// must cast to a signed type before comparing with other ids!
win = FindItem((signed short)id);
}
if ( cmd == 0 || cmd == 1 ) // menu or accel - use id
{
// must cast to a signed type before comparing with other ids!
win = FindItem((signed short)id);
}
{
// find it from HWND - this works even with the broken programs using
// the same ids for different controls
{
// find it from HWND - this works even with the broken programs using
// the same ids for different controls