Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.0 KiB

  1. typedef struct _tagSearch {
  2. CSTRING szDatabase;
  3. CSTRING szFilename;
  4. CSTRING szApplication;
  5. DBRECORD Record;
  6. struct _tagSearch * pNext;
  7. _tagSearch()
  8. {
  9. szDatabase.Init();
  10. szFilename.Init();
  11. szApplication.Init();
  12. }
  13. ~_tagSearch()
  14. {
  15. szDatabase.Release();
  16. szFilename.Release();
  17. szApplication.Release();
  18. }
  19. } SEARCHLIST, *PSEARCHLIST;
  20. class CDBSearch: public CView {
  21. public:
  22. HWND m_hListView;
  23. PSEARCHLIST m_pList;
  24. HBRUSH m_hFillBrush;
  25. public:
  26. CDBSearch();
  27. BOOL Initialize (void);
  28. /*
  29. ...................................................................
  30. This "fNotUsd" flag is not used in the member funcs of this class. This is just to ensure that this
  31. function does get called. And that we do not end up calling the respective function
  32. of CVIEW class. Activate is called with a value of FALSE from CApplication, when the user presses
  33. the View->DBView menu. In that case a vale of FALSE to CApplication::Activateview means that
  34. we do not want the items of the global and the local lists to be removed and created afresh.
  35. ...................................................................
  36. */
  37. void Update (BOOL fNotUsed = TRUE);
  38. BOOL Activate (BOOL fNotUsed = TRUE);
  39. MSGAPI msgCommand (UINT uID, HWND hSender);
  40. MSGAPI msgChar (TCHAR ch);
  41. MSGAPI msgResize (UINT uWidth,
  42. UINT uHeight);
  43. virtual LRESULT STDCALL MsgProc(UINT uMsg,
  44. WPARAM wParam,
  45. LPARAM lParam);
  46. };
  47. BOOL CALLBACK SearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  48. BOOL CALLBACK SelectDrivesProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);