Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Modernize scene selector by allowing mouse scroll #25

Open
davidrenne opened this issue Jun 14, 2022 · 1 comment
Open

[Feature] Modernize scene selector by allowing mouse scroll #25

davidrenne opened this issue Jun 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@davidrenne
Copy link

Possibly it would be nice to use the scroll wheel to navigate through the scene selector.

@frank-weindel frank-weindel added the enhancement New feature or request label Dec 7, 2022
@willbr
Copy link

willbr commented Aug 5, 2023

You'd need to handle the event: WM_MOUSEWHEEL

/***************************************************************************
Common stuff between the two window procs. Returns true if the default
window proc should _NOT_ be called.
***************************************************************************/
bool APPB::_FCommonWndProc(HWND hwnd, uint wm, WPARAM wParam, LPARAM lw, long *plwRet)
{
AssertThis(0);
AssertVarMem(plwRet);
PGOB pgob;
PT pt;
PSCB pscb;
RC rc;
HDC hdc;
PAINTSTRUCT ps;
HRGN hrgn;
*plwRet = 0;
switch (wm)
{
case WM_PAINT:
if (IsIconic(hwnd))
break;
// make sure the palette is selected and realized....
// theoretically, we shouldn't have to do this, but because
// of past and present Win bugs, we do it to be safe.
GPT::CclrSetPalette(hwnd, fFalse);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants