Changeset 165:07ed83d51a19
- Timestamp:
- 02/21/08 11:40:30
(7 months ago)
- Author:
- davelzg@gmail.com
- branch:
- default
- Message:
Fix tooltip bugs. by Zhiguang Liang
1).tailed by 0XFF string do a conversion of utf8-> utf16 string would throw exception by tango. We need to nullify the last byte of the chars string.
2).the function finger print doesn't keep consistency. setToolTipText in Shell.d
Note:
in the NMTTDISPINFO lpnmtdi struct from message, the field hinst should be forced to null.
but from the test experience, it now keeps always 0, let it be the same as java code.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r161 |
r165 |
|
| 727 | 727 | public static const int CS_VREDRAW = 0x1; |
|---|
| 728 | 728 | public static const int CW_USEDEFAULT = 0x80000000; |
|---|
| 729 | | public static const char[] DATETIMEPICK_CLASS = "SysDateTimePick32"; //$NON-NLS-1$ |
|---|
| | 729 | public static const TCHAR[] DATETIMEPICK_CLASS = "SysDateTimePick32"; //$NON-NLS-1$ |
|---|
| 730 | 730 | public static const int DATE_LONGDATE = 0x00000002; |
|---|
| 731 | 731 | public static const int DATE_SHORTDATE = 0x00000001; |
|---|
| … | … | |
| 1335 | 1335 | public static const int MONITOR_DEFAULTTONEAREST = 0x2; |
|---|
| 1336 | 1336 | public static const int MONITORINFOF_PRIMARY = 0x1; |
|---|
| 1337 | | public static const char[] MONTHCAL_CLASS = "SysMonthCal32"; //$NON-NLS-1$ |
|---|
| | 1337 | public static const TCHAR[] MONTHCAL_CLASS = "SysMonthCal32"; //$NON-NLS-1$ |
|---|
| 1338 | 1338 | public static const int MOUSEEVENTF_ABSOLUTE = 0x8000; |
|---|
| 1339 | 1339 | public static const int MOUSEEVENTF_LEFTDOWN = 0x0002; |
|---|
| … | … | |
| 4030 | 4030 | alias WINAPI.GetClassNameA GetClassName; |
|---|
| 4031 | 4031 | alias WINAPI.GetClipboardFormatNameA GetClipboardFormatName; |
|---|
| | 4032 | alias WINAPI.GetDateFormatA GetDateFormat; |
|---|
| | 4033 | alias WINAPI.GetTimeFormatA GetTimeFormat; |
|---|
| 4032 | 4034 | alias WINAPI.GetKeyNameTextA GetKeyNameText; |
|---|
| 4033 | 4035 | alias WINAPI.GetLocaleInfoA GetLocaleInfo; |
|---|
| … | … | |
| 4129 | 4131 | alias WINAPI.GetClassNameW GetClassName; |
|---|
| 4130 | 4132 | alias WINAPI.GetClipboardFormatNameW GetClipboardFormatName; |
|---|
| | 4133 | alias WINAPI.GetDateFormatW GetDateFormat; |
|---|
| | 4134 | alias WINAPI.GetTimeFormatW GetTimeFormat; |
|---|
| 4131 | 4135 | alias WINAPI.GetKeyNameTextW GetKeyNameText; |
|---|
| 4132 | 4136 | alias WINAPI.GetLocaleInfoW GetLocaleInfo; |
|---|
| r143 |
r165 |
|
| 340 | 340 | // int GetLocaleInfoA(LCID, LCTYPE, LPSTR, int); |
|---|
| 341 | 341 | // WINBOOL SetLocaleInfoA(LCID, LCTYPE, LPCSTR); |
|---|
| 342 | | // int GetTimeFormatA(LCID, DWORD, LPSYSTEMTIME, LPCSTR, LPSTR, int); |
|---|
| 343 | | // int GetDateFormatA(LCID, DWORD, LPSYSTEMTIME, LPCSTR, LPSTR, int); |
|---|
| | 342 | int GetTimeFormatA(LCID, DWORD, LPSYSTEMTIME, LPCSTR, LPSTR, int); |
|---|
| | 343 | int GetDateFormatA(LCID, DWORD, LPSYSTEMTIME, LPCSTR, LPSTR, int); |
|---|
| 344 | 344 | // int GetNumberFormatA(LCID, DWORD, LPCSTR, PNUMBERFMT, LPSTR, int); |
|---|
| 345 | 345 | // int GetCurrencyFormatA(LCID, DWORD, LPCSTR, PCURRENCYFMT, LPSTR, int); |
|---|
| … | … | |
| 733 | 733 | // int GetLocaleInfoW(LCID, LCTYPE, LPWSTR, int); |
|---|
| 734 | 734 | // WINBOOL SetLocaleInfoW(LCID, LCTYPE, LPCWSTR); |
|---|
| 735 | | // int GetTimeFormatW(LCID, DWORD, LPSYSTEMTIME, LPCWSTR, LPWSTR, int); |
|---|
| 736 | | // int GetDateFormatW(LCID, DWORD, LPSYSTEMTIME, LPCWSTR, LPWSTR, int); |
|---|
| | 735 | int GetTimeFormatW(LCID, DWORD, LPSYSTEMTIME, LPCWSTR, LPWSTR, int); |
|---|
| | 736 | int GetDateFormatW(LCID, DWORD, LPSYSTEMTIME, LPCWSTR, LPWSTR, int); |
|---|
| 737 | 737 | // int GetNumberFormatW(LCID, DWORD, LPCWSTR, PNUMBERFMT, LPWSTR, int); |
|---|
| 738 | 738 | // int GetCurrencyFormatW(LCID, DWORD, LPCWSTR, PCURRENCYFMT, LPWSTR, int); |
|---|
| r117 |
r165 |
|
| 1572 | 1572 | char [] chars = new char [length_ + 1]; |
|---|
| 1573 | 1573 | string.getChars (0, length_, chars, 0); |
|---|
| | 1574 | chars[$-1] = 0; // d initialize it to 0xFF, we need to make it null terminated |
|---|
| 1574 | 1575 | |
|---|
| 1575 | 1576 | /* |
|---|
| r128 |
r165 |
|
| 1539 | 1539 | } |
|---|
| 1540 | 1540 | |
|---|
| 1541 | | void setToolTipText (NMTTDISPINFO lpnmtdi, char [] buffer) { |
|---|
| | 1541 | void setToolTipText (NMTTDISPINFO* lpnmtdi, char [] buffer) { |
|---|
| 1542 | 1542 | /* |
|---|
| 1543 | 1543 | * Ensure that the current position of the mouse |
|---|