Changeset 793 in dev for branches/egtra/ab5.0/abdev/abdev-impl/Resource
- Timestamp:
- Jan 30, 2011, 6:29:32 PM (14 years ago)
- Location:
- branches/egtra/ab5.0/abdev/abdev-impl/Resource
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.cpp
r792 r793 70 70 } 71 71 72 } 72 } // unnamed namespace 73 73 74 HICON LoadIcon (HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load)74 HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load) 75 75 { 76 76 return LoadIconCursorImpl(hinst, id, cxDesired, cyDesired, load, true); 77 77 } 78 78 79 HICON LoadIcon (HINSTANCE hinst, USHORT id)79 HICON LoadIconAlt(HINSTANCE hinst, USHORT id) 80 80 { 81 81 return LoadIconCursorImpl(hinst, id, 32, 32, LR_SHARED, true); 82 82 } 83 83 84 HCURSOR LoadCursor (HINSTANCE hinst, USHORT id)84 HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id) 85 85 { 86 86 return LoadIconCursorImpl(hinst, id, 32, 32, LR_SHARED, false); … … 90 90 // How To Use LoadResource to Load Strings from a String Table 91 91 // http://support.microsoft.com/kb/200893/en-us 92 boost::optional<std::wstring> LoadString (HINSTANCE hinst, USHORT id)92 boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id) 93 93 { 94 94 UINT idRsrcBlk = id / 16 + 1; … … 123 123 } 124 124 125 namespace { 126 125 127 // http://msdn.microsoft.com/en-us/library/ms648010.aspx 126 128 struct ACCELTABLEENTRY … … 138 140 } 139 141 140 HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id) 142 } // unnamed namespace 143 144 HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id) 141 145 { 142 146 using namespace boost::adaptors; … … 161 165 } 162 166 163 HMENU LoadMenu (HINSTANCE hinst, USHORT id)167 HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id) 164 168 { 165 169 return LoadMenuIndirect(GetResource(hinst, id, RT_MENU)); -
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h
r792 r793 7 7 namespace ActiveBasic { namespace Resource { 8 8 9 HICON LoadIcon (HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);10 HICON LoadIcon (HINSTANCE hinst, USHORT id);9 HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); 10 HICON LoadIconAlt(HINSTANCE hinst, USHORT id); 11 11 12 HCURSOR LoadCursor (HINSTANCE hinst, USHORT id);12 HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id); 13 13 14 boost::optional<std::wstring> LoadString (HINSTANCE hinst, USHORT id);14 boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id); 15 15 16 HACCEL LoadAccelerators (HINSTANCE hinst, USHORT id);16 HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id); 17 17 18 HMENU LoadMenu (HINSTANCE hinst, USHORT id);18 HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id); 19 19 20 20 struct IconDeleter
Note:
See TracChangeset
for help on using the changeset viewer.