Click here to Skip to main content
15,923,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transparent Icons Pin
AnkushChopra30-May-03 1:49
AnkushChopra30-May-03 1:49 
GeneralRe: Transparent Icons Pin
MemLeak30-May-03 3:05
MemLeak30-May-03 3:05 
GeneralTree Control with Checkboxes .... Pin
rohit.dhamija29-May-03 2:05
rohit.dhamija29-May-03 2:05 
GeneralRe: Tree Control with Checkboxes .... Pin
AnkushChopra29-May-03 2:27
AnkushChopra29-May-03 2:27 
GeneralSafeArray Pin
vikramlinux28-May-03 23:31
vikramlinux28-May-03 23:31 
Generalhelp resolve access violation in ole32.lib Pin
safee ullah28-May-03 23:21
safee ullah28-May-03 23:21 
Generalproblem with a second DIALOGBAR Pin
aguest28-May-03 22:16
aguest28-May-03 22:16 
GeneralRe: problem with a second DIALOGBAR Pin
MemLeak29-May-03 5:46
MemLeak29-May-03 5:46 
Hi,

Because the dialogbar is a child, you have to catch the message from the slider control into the parent window.

You have to catch the slider message with onHScroll() or onVScroll().

So into your parent window (probably the mainframe) you can put into your mainframe.h:

CSliderCtrl myslider;

and

void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

into your
mainframe.cpp

DDX_Control(pDX, IDC_MYSLIDER, myslider);

ON_WM_HSCROLL()

and

void mainframe::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
CSliderCtrl* slider = (CSliderCtrl*) pScrollBar;
int position = slider->GetPos();

OnHScroll(nSBCode, nPos, pScrollBar);
}


so after having the position, you can put the value into the edit box.

It's up to you from now

bye

Everything's beautiful if you look at it long enough...
GeneralRe: problem with a second DIALOGBAR Pin
aguest29-May-03 9:22
aguest29-May-03 9:22 
GeneralRe: problem with a second DIALOGBAR Pin
MemLeak29-May-03 9:49
MemLeak29-May-03 9:49 
QuestionHow to place ComboBox in DB grid Pin
DeveloperRK28-May-03 22:00
DeveloperRK28-May-03 22:00 
GeneralEntering an acount on a web-site, knowing the username & password Pin
dorutzu28-May-03 21:27
dorutzu28-May-03 21:27 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
David Crow29-May-03 2:31
David Crow29-May-03 2:31 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
dorutzu29-May-03 3:55
dorutzu29-May-03 3:55 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
David Crow29-May-03 3:59
David Crow29-May-03 3:59 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
basementman29-May-03 4:14
basementman29-May-03 4:14 
Generalexecution of SCP script thro VC++ Pin
BitsANDByte28-May-03 21:17
BitsANDByte28-May-03 21:17 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow29-May-03 2:33
David Crow29-May-03 2:33 
GeneralRe: execution of SCP script thro VC++ Pin
BitsANDByte19-Jun-03 23:05
BitsANDByte19-Jun-03 23:05 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow20-Jun-03 2:29
David Crow20-Jun-03 2:29 
GeneralRe: execution of SCP script thro VC++ Pin
BitsANDByte23-Jun-03 2:16
BitsANDByte23-Jun-03 2:16 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow23-Jun-03 2:30
David Crow23-Jun-03 2:30 
GeneralRe: execution of SCP script thro VC++ Pin
Anonymous27-Jun-03 20:36
Anonymous27-Jun-03 20:36 
Generalhandel run methode Pin
Anonymous28-May-03 17:24
Anonymous28-May-03 17:24 
Generalvery long numbers Pin
Selevercin28-May-03 17:17
Selevercin28-May-03 17:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.