Diff for /np2/win9x/dialog/dialogs.cpp between versions 1.15 and 1.16

version 1.15, 2007/12/17 14:52:56 version 1.16, 2007/12/28 20:36:40
Line 35  static BOOL openFileParam(LPOPENFILENAME Line 35  static BOOL openFileParam(LPOPENFILENAME
                                                         OEMCHAR *pszPath, UINT uSize,                                                          OEMCHAR *pszPath, UINT uSize,
                                                         BOOL (WINAPI * fnAPI)(LPOPENFILENAME lpofn))                                                          BOOL (WINAPI * fnAPI)(LPOPENFILENAME lpofn))
 {  {
         HINSTANCE       hInstance;  
         LPTSTR          lpszTitle;          LPTSTR          lpszTitle;
         LPTSTR          lpszFilter;          LPTSTR          lpszFilter;
         LPTSTR          lpszDefExt;          LPTSTR          lpszDefExt;
Line 51  static BOOL openFileParam(LPOPENFILENAME Line 50  static BOOL openFileParam(LPOPENFILENAME
                 return FALSE;                  return FALSE;
         }          }
   
         hInstance = g_hInstance;  
   
         if (!HIWORD(pcParam->lpszTitle))          if (!HIWORD(pcParam->lpszTitle))
         {          {
                 lpszTitle = lockstringresource(hInstance, pcParam->lpszTitle);                  lpszTitle = lockstringresource(pcParam->lpszTitle);
                 lpOFN->lpstrTitle = lpszTitle;                  lpOFN->lpstrTitle = lpszTitle;
         }          }
         else          else
Line 66  static BOOL openFileParam(LPOPENFILENAME Line 63  static BOOL openFileParam(LPOPENFILENAME
   
         if (!HIWORD(pcParam->lpszFilter))          if (!HIWORD(pcParam->lpszFilter))
         {          {
                 lpszFilter = lockstringresource(hInstance, pcParam->lpszFilter);                  lpszFilter = lockstringresource(pcParam->lpszFilter);
                 lpOFN->lpstrFilter = lpszFilter;                  lpOFN->lpstrFilter = lpszFilter;
         }          }
         else          else
Line 77  static BOOL openFileParam(LPOPENFILENAME Line 74  static BOOL openFileParam(LPOPENFILENAME
   
         if (!HIWORD(pcParam->lpszDefExt))          if (!HIWORD(pcParam->lpszDefExt))
         {          {
                 lpszDefExt = lockstringresource(hInstance, pcParam->lpszDefExt);                  lpszDefExt = lockstringresource(pcParam->lpszDefExt);
                 lpOFN->lpstrDefExt = lpszDefExt;                  lpOFN->lpstrDefExt = lpszDefExt;
         }          }
         else          else
Line 300  void dlgs_setcbitem(HWND hWnd, UINT uID, Line 297  void dlgs_setcbitem(HWND hWnd, UINT uID,
                 lpcszStr = pcItem[i].lpcszString;                  lpcszStr = pcItem[i].lpcszString;
                 if (!HIWORD(lpcszStr))                  if (!HIWORD(lpcszStr))
                 {                  {
                         if (!loadstringresource(g_hInstance, LOWORD(lpcszStr),                          if (!loadstringresource(LOWORD(lpcszStr),
                                                                                         szString, NELEMENTS(szString)))                                                                                          szString, NELEMENTS(szString)))
                         {                          {
                                 continue;                                  continue;
Line 375  static void insertnc(HWND hWnd, int nPos Line 372  static void insertnc(HWND hWnd, int nPos
 {  {
         TCHAR   szNC[128];          TCHAR   szNC[128];
   
         loadstringresource(g_hInstance, LOWORD(IDS_NONCONNECT),          loadstringresource(LOWORD(IDS_NONCONNECT), szNC, NELEMENTS(szNC));
                                                                                                         szNC, NELEMENTS(szNC));  
         SendMessage(hWnd, CB_INSERTSTRING, (WPARAM)nPos, (LPARAM)szNC);          SendMessage(hWnd, CB_INSERTSTRING, (WPARAM)nPos, (LPARAM)szNC);
 }  }
   

Removed from v.1.15  
changed lines
  Added in v.1.16


RetroPC.NET-CVS <cvs@retropc.net>