Previous 15994 Revisions Next

r7402 Wednesday 17th February, 2010 at 20:14:05 UTC by Firewave
[MESSUI] use proper returnvalue type
[src/mess/osd/winui]messui.c propertiesms.c softwarepicker.c
[src/osd/winui]dialogs.c picker.c tabview.c winui.c

src/osd/winui/tabview.c
r7401r7402
276276   int i;
277277   TCHAR* t_text;
278278   HRESULT res;
279   BOOL b_res;
279280
280281   pTabViewInfo = GetTabViewInfo(hwndTabView);
281282
282   res = TabCtrl_DeleteAllItems(hwndTabView);
283   b_res = TabCtrl_DeleteAllItems(hwndTabView);
283284
284285   memset(&tci, 0, sizeof(tci));
285286   tci.mask = TCIF_TEXT;
src/osd/winui/picker.c
r7401r7402
340340   LVCOLUMN col;
341341   struct PickerInfo *pPickerInfo;
342342   HRESULT res;
343   BOOL b_res;
343344
344345   pPickerInfo = GetPickerInfo(hWnd);
345346
r7401r7402
372373      {
373374         nColumn = Picker_GetRealColumnFromViewColumn(hWnd, i++);
374375         widths[nColumn] = col.cx;
375         res = ListView_DeleteColumn(hWnd, 0);
376         b_res = ListView_DeleteColumn(hWnd, 0);
376377      }
377378
378379      pPickerInfo->pCallbacks->pfnSetColumnWidths(widths);
r7401r7402
413414   }
414415
415416   if (GetListFontColor() == RGB(255, 255, 255))
416      res = ListView_SetTextColor(hWnd, RGB(240, 240, 240));
417      b_res = ListView_SetTextColor(hWnd, RGB(240, 240, 240));
417418   else
418      res = ListView_SetTextColor(hWnd, GetListFontColor());
419      b_res = ListView_SetTextColor(hWnd, GetListFontColor());
419420
420421done:
421422   if (widths)
r7401r7402
676677{
677678   int nItem;
678679   LV_ITEM lvi;
679   HRESULT res;
680   BOOL res;
680681
681682   nItem = ListView_GetNextItem(hWnd, -1, LVIS_SELECTED | LVIS_FOCUSED);
682683   if (nItem < 0)
r7401r7402
693694
694695void Picker_SetSelectedPick(HWND hWnd, int nIndex)
695696{
696   HRESULT res;
697   BOOL res;
697698   
698699   if (nIndex < 0)
699700      nIndex = 0;
r7401r7402
759760   HWND hwndHeader;
760761   HD_ITEM hdi;
761762   int i, nViewColumn;
762   HRESULT res;
763   BOOL res;
763764
764765   pPickerInfo = GetPickerInfo(hwndPicker);
765766
r7401r7402
929930   struct PickerInfo *pPickerInfo;
930931   struct CompareProcParams params;
931932   int nItem;
932   HRESULT res;
933   BOOL res;
933934
934935   pPickerInfo = GetPickerInfo(hwndPicker);
935936
r7401r7402
957958   struct CompareProcParams params;
958959   int nCompareResult;
959960   LVITEM lvi;
960   HRESULT res;
961   BOOL res;
961962
962963   pPickerInfo = GetPickerInfo(hwndPicker);
963964
r7401r7402
12441245   int         nParent;
12451246   HBITMAP      hBackground = GetBackgroundBitmap();
12461247   MYBITMAPINFO *pbmDesc = GetBackgroundInfo();
1247   HRESULT res;
1248   BOOL res;
12481249
12491250   pPickerInfo = GetPickerInfo(hWnd);
12501251
r7401r7402
16181619   int *tmpOrder;
16191620   int nColumnMax, i;
16201621   BOOL bSuccess = FALSE;
1621   HRESULT res;
1622   BOOL res;
16221623
16231624   pPickerInfo = GetPickerInfo(hwndPicker);
16241625
src/osd/winui/dialogs.c
r7401r7402
628628{
629629    static LPTREEFOLDER default_selection = NULL;
630630   static int driver_index;
631   HRESULT res;
631   BOOL res;
632632
633633   switch (Msg)
634634   {
src/osd/winui/winui.c
r7401r7402
10621062   int tmpOrder[COLUMN_MAX];
10631063   int nColumnMax;
10641064   int i;
1065   HRESULT res;
1065   BOOL res;
10661066
10671067   nColumnMax = Picker_GetNumColumns(hwndList);
10681068
r7401r7402
21682168   MINMAXINFO   *mminfo;
21692169   int       i;
21702170   TCHAR szClass[128];
2171   HRESULT res;
2171   BOOL res;
21722172
21732173   switch (message)
21742174   {
r7401r7402
25612561   LV_FINDINFO lvfi;
25622562   int nCount = ListView_GetItemCount(hwndList);
25632563   BOOL changed = FALSE;
2564   HRESULT res;
2564   BOOL res;
25652565
25662566   MSG msg;
25672567   for(i=0; i<nCount;i++)
r7401r7402
26362636   LV_FINDINFO lvfi;
26372637   int i;
26382638   BOOL changed = FALSE;
2639   HRESULT res;
2639   BOOL res;
26402640
26412641   if (game_index == 0)
26422642      ProgressBarShow();
r7401r7402
38423842   BOOL   no_selection = FALSE;
38433843   LPTREEFOLDER lpFolder = GetCurrentFolder();
38443844   HRESULT res;
3845   BOOL b_res;
38453846
38463847   if (!lpFolder)
38473848    {
r7401r7402
38583859
38593860   SetWindowRedraw(hwndList,FALSE);
38603861
3861   res = ListView_DeleteAllItems(hwndList);
3862   b_res = ListView_DeleteAllItems(hwndList);
38623863
38633864   // hint to have it allocate it all at once
38643865   ListView_SetItemCount(hwndList,driver_list_get_count(drivers));
r7401r7402
39913992   TCHAR szClass[128];
39923993   HWND hWnd;
39933994   HRESULT res;
3995   BOOL b_res;
39943996
39953997   GetListFont(&font);
39963998   font.lfQuality = DEFAULT_QUALITY;
r7401r7402
40264028         {
40274029            if (!_tcscmp(szClass, TEXT("SysListView32")))
40284030            {
4029               res = ListView_SetTextColor(hWnd, textColor);
4031               b_res = ListView_SetTextColor(hWnd, textColor);
40304032            }
40314033            else if (!_tcscmp(szClass, TEXT("SysTreeView32")))
40324034            {
r7401r7402
40754077   int i;
40764078   LPTREEFOLDER folder;
40774079   char* t_szFile;
4078   HRESULT res;
4080   BOOL res;
40794081
40804082   switch (id)
40814083   {
r7401r7402
49614963   LVBKIMAGE bki;
49624964   TCHAR path[MAX_PATH];
49634965   TCHAR* t_bgdir;
4964   HRESULT res;
4966   BOOL res;
49654967
49664968   static const struct PickerCallbacks s_gameListCallbacks =
49674969   {
r7401r7402
54005402static HICON GetSelectedPickItemIcon()
54015403{
54025404   LV_ITEM lvi;
5403   HRESULT res;
5405   BOOL res;
54045406
54055407   lvi.iItem = GetSelectedPick();
54065408   lvi.iSubItem = 0;
r7401r7402
60056007static void MamePlayGameWithOptions(int nGame, const play_options *playopts)
60066008{
60076009   DWORD dwExitCode;
6008   HRESULT res;
6010   BOOL res;
60096011
60106012#ifdef MESS
60116013   if (!MessApproveImageList(hMain, nGame))
r7401r7402
60726074   TCHAR szClass[128];
60736075   HWND hWnd;
60746076   HRESULT res;
6077   BOOL b_res;
60756078
60766079   /* WM_SETTINGCHANGE also */
60776080   xtraX  = GetSystemMetrics(SM_CXFIXEDFRAME); /* Dialog frame width */
r7401r7402
60996102      {
61006103         if (!_tcscmp(szClass, TEXT("SysListView32")))
61016104         {
6102            res = ListView_SetBkColor(hWnd, GetSysColor(COLOR_WINDOW));
6103            res = ListView_SetTextColor(hWnd, textColor);
6105            b_res = ListView_SetBkColor(hWnd, GetSysColor(COLOR_WINDOW));
6106            b_res = ListView_SetTextColor(hWnd, textColor);
61046107         }
61056108         else if (!_tcscmp(szClass, TEXT("SysTreeView32")))
61066109         {
r7401r7402
62086211   HMENU hMenu;
62096212   TVHITTESTINFO hti;
62106213   POINT pt;
6211   HRESULT res;
6214   BOOL res;
62126215
62136216   if ((HWND)wParam != GetDlgItem(hWnd, IDC_TREE))
62146217      return FALSE;
r7401r7402
67416744{
67426745    LV_ITEM lvi;
67436746   POINT pt;
6744   HRESULT res;
6747   BOOL res;
67456748
67466749   lvi.iItem = pnmv->iItem;
67476750   lvi.mask    = LVIF_PARAM;
r7401r7402
67776780{
67786781   HTREEITEM htiTarget;
67796782   TV_HITTESTINFO tvht;
6780   HRESULT res;
6783   BOOL res;
67816784
67826785   POINT pt;
67836786   pt.x = p.x;
r7401r7402
68116814    HTREEITEM htiTarget;
68126815   TV_HITTESTINFO tvht;
68136816   TVITEM tvi;
6814   HRESULT res;
6817   BOOL res;
68156818
68166819   ReleaseCapture();
68176820
r7401r7402
68766879{
68776880   HTREEITEM htree;
68786881   TVITEM tvi;
6879   HRESULT res;
6882   BOOL res;
6883
68806884   htree = TreeView_GetSelection(hTreeView);
68816885   if(htree != NULL)
68826886   {
r7401r7402
68946898   TVITEM tvi;
68956899   HIMAGELIST hSmall_icon;
68966900   LPTREEFOLDER folder;
6897   HRESULT res;
6901   BOOL res;
6902
68986903   htree = TreeView_GetSelection(hTreeView);
68996904
69006905   if (htree != NULL)
r7401r7402
69146919/* Updates all currently displayed Items in the List with the latest Data*/
69156920void UpdateListView(void)
69166921{
6917   HRESULT res;
6922   BOOL res;
6923
69186924   if( (GetViewMode() == VIEW_GROUPED) || (GetViewMode() == VIEW_DETAILS ) )
69196925      res = ListView_RedrawItems(hwndList,ListView_GetTopIndex(hwndList),
69206926                      ListView_GetTopIndex(hwndList)+ ListView_GetCountPerPage(hwndList) );
src/mess/osd/winui/messui.c
r7401r7402
13471347   HWND hwndSoftwarePicker;
13481348   HWND hwndSoftwareDevView;
13491349   RECT rMain, rSoftwareTabView, rClient, rTab;
1350   HRESULT res;
1350   BOOL res;
13511351
13521352   hwndSoftwareTabView = GetDlgItem(GetMainWindow(), IDC_SWTAB);
13531353   hwndSoftwarePicker = GetDlgItem(GetMainWindow(), IDC_SWLIST);
src/mess/osd/winui/softwarepicker.c
r7401r7402
240240   unsigned int nLength;
241241   HANDLE hFile, hFileMapping;
242242   LVFINDINFO lvfi;
243   HRESULT res;
243   BOOL res;
244244
245245   pPickerInfo = GetSoftwarePickerInfo(hwndPicker);
246246   assert((nIndex >= 0) && (nIndex < pPickerInfo->file_index_length));
r7401r7402
593593void SoftwarePicker_Clear(HWND hwndPicker)
594594{
595595   software_picker_info *pPickerInfo;
596   HRESULT res;
596   BOOL res;
597
597598   pPickerInfo = GetSoftwarePickerInfo(hwndPicker);
598599   SoftwarePicker_InternalClear(pPickerInfo);
599600   res = ListView_DeleteAllItems(hwndPicker);
src/mess/osd/winui/propertiesms.c
r7401r7402
7575    TCHAR outbuf[MAX_PATH];
7676    HWND hList;
7777   LPTSTR lpIn;
78   HRESULT res;
78   BOOL res;
7979
8080   g_bModifiedSoftwarePaths = TRUE;
8181
r7401r7402
120120    int     nSelect;
121121    int     nItem;
122122    HWND    hList = GetDlgItem(hDlg, IDC_DIR_LIST);
123   HRESULT res;
123   BOOL res;
124124
125125   g_bModifiedSoftwarePaths = TRUE;
126126
r7401r7402
285285   TCHAR buffer[2048];
286286   char *dir_list;
287287   int i, pos, driver_index;
288   HRESULT res;
288   BOOL res;
289289
290290   // determine the directory count; note that one item is the "<    >" entry
291291   directory_count = ListView_GetItemCount(control);
r7401r7402
334334   LV_COLUMN lvc;
335335   RECT r;
336336   HRESULT res;
337   BOOL b_res;
337338
338339   // access the directory list, and convert to TCHARs
339340   driver_index = PropertiesCurrentGame(dialog);
r7401r7402
343344      return FALSE;
344345
345346   // delete all items in the list control
346   res = ListView_DeleteAllItems(control);
347   b_res = ListView_DeleteAllItems(control);
347348
348349   // add the column
349350   GetClientRect(control, &r);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team