diff options
| author | Zufu Liu <unknown> | 2025-12-18 12:57:08 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2025-12-18 12:57:08 +1100 |
| commit | 17492194fb5be9fc3c082c11967e8a64db192506 (patch) | |
| tree | a51a5de95f43b2a3a060a2f5d05c0ce15b22c295 | |
| parent | 724429a7c661eeafe3094a049f747267d0496a69 (diff) | |
| download | scintilla-mirror-17492194fb5be9fc3c082c11967e8a64db192506.tar.gz | |
Feature [feature-requests:#1573]. Replace archaic PASCAL with current CALLBACK.
| -rw-r--r-- | win32/ListBox.cxx | 12 | ||||
| -rw-r--r-- | win32/ScintillaWin.cxx | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/win32/ListBox.cxx b/win32/ListBox.cxx index 0548ea5bc..b5ce7782f 100644 --- a/win32/ListBox.cxx +++ b/win32/ListBox.cxx @@ -195,8 +195,8 @@ class ListBoxX : public ListBox { LRESULT NcHitTest(WPARAM, LPARAM) const; void CentreItem(int n); void AllocateBitMap(); - LRESULT PASCAL ListProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); - static LRESULT PASCAL ControlWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); + LRESULT CALLBACK ListProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); + static LRESULT CALLBACK ControlWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); static constexpr POINT ItemInset {0, 0}; // Padding around whole item static constexpr POINT TextInset {2, 0}; // Padding around text @@ -237,7 +237,7 @@ public: void SetOptions(ListOptions options_) override; void Draw(DRAWITEMSTRUCT *pDrawItem); LRESULT WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); - static LRESULT PASCAL StaticWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); + static LRESULT CALLBACK StaticWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); }; std::unique_ptr<ListBox> ListBox::Allocate() { @@ -787,7 +787,7 @@ void ListBoxX::AllocateBitMap() { graphics.pixmapLine->Init(graphics.bm.DC(), GetID()); } -LRESULT PASCAL ListBoxX::ListProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { +LRESULT CALLBACK ListBoxX::ListProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { try { switch (iMessage) { case WM_ERASEBKGND: @@ -831,7 +831,7 @@ LRESULT PASCAL ListBoxX::ListProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARA return ::DefWindowProc(hWnd, iMessage, wParam, lParam); } -LRESULT PASCAL ListBoxX::ControlWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { +LRESULT CALLBACK ListBoxX::ControlWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { if (ListBoxX *lbx = static_cast<ListBoxX *>(PointerFromWindow(::GetParent(hWnd)))) { return lbx->ListProc(hWnd, iMessage, wParam, lParam); } @@ -949,7 +949,7 @@ LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam return 0; } -LRESULT PASCAL ListBoxX::StaticWndProc( +LRESULT CALLBACK ListBoxX::StaticWndProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { if (iMessage == WM_CREATE) { CREATESTRUCT *pCreate = static_cast<CREATESTRUCT *>(PtrFromLParam(lParam)); diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 8f79ef011..dfe075293 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -573,12 +573,12 @@ class ScintillaWin : sptr_t ptr, UINT iMessage, uptr_t wParam, sptr_t lParam); static sptr_t DirectStatusFunction( sptr_t ptr, UINT iMessage, uptr_t wParam, sptr_t lParam, int *pStatus); - static LRESULT PASCAL SWndProc( + static LRESULT CALLBACK SWndProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); void CTPaint(HWND hWnd); LRESULT CTProcessMessage(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); - static LRESULT PASCAL CTWndProc( + static LRESULT CALLBACK CTWndProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); enum : UINT_PTR { invalidTimerID, standardTimerID, idleTimerID, fineTimerStart }; @@ -4010,7 +4010,7 @@ LRESULT ScintillaWin::CTProcessMessage(HWND hWnd, UINT iMessage, WPARAM wParam, return ::DefWindowProc(hWnd, iMessage, wParam, lParam); } -LRESULT PASCAL ScintillaWin::CTWndProc( +LRESULT CALLBACK ScintillaWin::CTWndProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { // Find C++ object associated with window. ScintillaWin *sciThis = static_cast<ScintillaWin *>(PointerFromWindow(hWnd)); @@ -4052,7 +4052,7 @@ sptr_t DirectFunction( } -LRESULT PASCAL ScintillaWin::SWndProc( +LRESULT CALLBACK ScintillaWin::SWndProc( HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { //Platform::DebugPrintf("S W:%x M:%x WP:%x L:%x\n", hWnd, iMessage, wParam, lParam); |
