case ID_SETTINGS_CONFIGURE:
/* get current port settings */
lrc = sizeof(COMMCONFIG);
GetCommConfig (hComm, &cc, &lrc);
/* display dialog to modify settings */
if (!CommConfigDialog(lpszCommName, hWnd, &cc))
^^^^^
如何取得hWnd的參數
break;
/* write new settings */
if (!SetCommState (hComm, &cc.dcb))
break;
break;
case ID_SETTINGS_CONFIGURE:
/* get current port settings */
lrc = sizeof(COMMCONFIG);
GetCommConfig (hComm, &cc, &lrc);
/* display dialog to modify settings */
if (!CommConfigDialog(lpszCommName, hWnd, &cc))
^^^^^
請問要如何取得