|
Hi,
great sample.
i'm trying to have that control on SDI application.
I created the control by calling
m_sliderVol.Create(NULL, WS_CHILD | WS_VISIBLE, CRect(0,0, 50, 30), this, IDC_VOL);
But the control doesn't get the mouse event like LButtonDown.
Any idea?
Thanks,
Dudi
|
|
|
|
|
I found it. I had to add SS_NOTIFY. So the Create will be
m_sliderVol.Create(NULL, WS_CHILD | WS_VISIBLE | SS_NOTIFY, CRect(0,0, 50, 30), this, IDC_VOL);
|
|
|
|
|
-I add the image resource with all the images ID above : IDB_THUMB, IDB_THUMB and IDB_THUMB_ACTIVE but when I compile, the error are the three images undeclare variables.
BOOL Ctest1Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_Slider.SetBitmapChannel( IDB_THUMB, NULL, TRUE );
m_Slider.SetBitmapThumb( IDB_THUMB, IDB_THUMB_ACTIVE, TRUE );
}
-Can you complete all the statements below because I don't clear about it
<pre lang="c++">
LRESULT CMyDlg::OnMyMessage(WPARAM wParam, LPARAM lParam) {
...
}
|
|
|
|
|
This project I implement for PocketPC.
|
|
|
|
|
Versatile. Handle mouse-click selection all over the slider range. Even without bitmap, it's still better than the standard slider control.
|
|
|
|
|
Now ,I wana use this control,because I feel it's fitable for my project.But, I wana a function to make the thumb visible and not visible,please give me help! I'm waiting on line.
|
|
|
|
|
This will be very helpful for me.
|
|
|
|
|
My english is very bad!
first, thank you, you are very excellent!
I use it in serial port communication and other communication program.
It's very slowly, but i use microsoft CSliderCtrl it can work well .
the problem is i move mouse, the CBitmapslider can't Redraw it , and wait a moment then Redraw !!!
|
|
|
|
|
Anybody modified this to support increasing values in the up direction for vertically oriented sliders?
|
|
|
|
|
nevermind ... that was too easy ...
|
|
|
|
|
It's very helpful for me !
|
|
|
|
|
|
|
There is a bug in the focus rect drawing of transparent controls. Try this with the example app:
1. Select the "Without Thumb" -> "Transparent"
2. Drag the entire window offscreen
3. Now drag it back onscreen
4. Focus rect on "Transparent" is missing
5. Click on "Normal" then back on "Transparent" - focus rect state is reversed.
Will
|
|
|
|
|
hii thnxxxxxxxxxxxxxxxx a lottttttttt thats what i want from a long timee.. realyy gr8 work , but the problem is that we cant load bimaps from outside , like from Hardrive or pathway "C:\\test.bmp" , butt I DONE IT !!!!! thnx to you.. sorry i edited your codee.. but i realyy need it .. thnxxxxxxxxxxxxxxxxxxxxx a lottttttt again ...
|
|
|
|
|
I also wanted to load the bitmaps from an outside source. Can you provide your changes that allowed you to do this for everyone else to learn from?
|
|
|
|
|
|
Scrolling range doesn't affected after SetWindowPos() with new size.
User can add WM_SIZE handler, which change both m_nWidth, m_nHeight parameter.
/E/X/T/R/E/A/L/M - In to the rain...
extrelam@perstel.co.kr.NOSPAM.COM
|
|
|
|
|
전 한국사람인데 한국사람이 외국에 나가서 위대한 업적을 남기는것이 자랑스럽습니다
저는 게임공학도인데요 좋은자료 감사합니다.
dd
|
|
|
|
|
Hi Joon,
Nice App.
how to port this to PocketPC.
Some of the API functions usedare not supported in PPC.
Thx
|
|
|
|
|
I just commented out the lines in CMemDC that aren't supported on Pocket PC and it compiled. I had to adjust the thumb a bit in the code, but other than that (and a few graphic anomolies), it seems to work fine.
|
|
|
|
|
Hi, I really like your custom control, that's for shure!
I'm very new to MFC. Lately I try to implement custom controls in a MFC based environment (kX audio driver [url]www.kxproject.com[/url]) and I've had success with most controls. The author of kX Project has created custom classes to substitute almost all MFC classes and tryes to reduce MFC as much as possible (and totaly get rid of in the end).
I tried to implement your control manually (without ClassWizard) with obj.Create and subseqent member functions. All compiles well, but in the application dialog I don't see the bitmaps, only the dimensions of the control. I think I've done everything right, but since I'm new to MFC I can't solve the problem myself.
Please give me some hints on solving this problem.
Thanks
|Martin|
|
|
|
|
|
Great job, excellent documentation. Thanks.
|
|
|
|
|
I think it would be cool if you could have rollovers for the slider control. So when the mouse moves over the slider control, the whole slider could light up until the mouse leaves.
Great job, you got my 5.
|
|
|
|
|
Hey there,
First like to say that this is an amazing control that is PERFECT for my app. Only thing is I know nothing about C++ (the syntax brings me out in a sweat!) but want to use it in my VB.Net app.
Is there any way of having this as an activex (or other) control that can be added to all apps? This would make it THE ultimate slider out there!
Unless of course I'm just being stupid and you can add it to a VB app easily (very possible, I'm still pretty much a beginner)
Anyways, thanks for a great control that I wish I could use!
Richard
|
|
|
|