Solved

Detect the diff ID of the sliders??

Posted on 1998-10-09
2
177 Views
Last Modified: 2013-11-20
Hi there!

I have a two sliders attached to a dialog based application.
How do i detect which slider i had click on inside the WM_VScroll message call...??? Thanx.
Urgently needed!!!!!!!!
0
Comment
Question by:Ah_Kua
2 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 10 total points
ID: 1323137
1. In response to WM_VSCROLL sent to the dialog

//f OnVScroll MFC override use
HWND hWndScroll = pScrollBar->m_hWnd ;
// SDK style equivalent: (unpacking the message manually) is
// HWND hWndScroll = (HWND) lParam;      


if  ( hWndScroll == ::GetDlgItem(m_hWnd,IDC_SLIDER1) )
{
 // slider #1
}
else if  ( hWndScroll == ::GetDlgItem(m_hWnd,IDC_SLIDER2) )
{
 // slider #2
}

0
 

Author Comment

by:Ah_Kua
ID: 1323138
Thanx anyway but i solve already using pointer in the init dialog to reference it....
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 136
ASCII Non-Printable characters/codes and their HTML equivalents 6 117
How to know only "File created" with EventLog 3 34
lucky13 challenge 11 146
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question