|
|
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
|
|
|
|
|
Excellent creativity, no more more for the above code!!! three cheers
|
|
|
|
|
Oh, Thank you. But it's too much!
I hope to improve it with better knowledge when I have more time.
And it's based on other great articles and advices.
They have priority to be praised over it.
|
|
|
|
|
This is a wonderful control. I have never seen anything like it.
But how can i use it in C#?
Thx in advance
|
|
|
|
|
Thank you.
But, I've never used C# yet.
I am sorry that I can't help you now.
|
|
|
|
|
I'm using C#, too... and I don't know how to run it in our language, maybe someone can write a wrapper^^
Edit: It could help us, if you would compile the code in a *.dll library;)
|
|
|
|
|
When I start the demo and another program (for example the explorer) is in front of the demo program (the demo program will be displayed behind the other program), the slider with the bus and the bird have a wrong background. The background behind the images (bird, bus) has the backgroud of the window, which was in the front of the demo program, when I startet the demo program. Any ideas how to fix this problem?
Olaf
|
|
|
|
|
Oh, I see...
I tought that even the control don't erase it's background, a dialog window will do for it.
CBitmapSlider::OnEraseBkgnd(CDC* pDC) may has a problem.
By the way, how to start the program behind other application?
Would you please tell me how you did it?
I want to test and debug it but I can't.
|
|
|
|
|
That's no problem.
Start the Windows Task-Manager and place the window in the middle of the Desktop. Now start your demo program, it will appear behind the Task-Manager. Then close the Task-Manager and you will see the problem.
|
|
|
|
|
Oh, there is a problem.
CBitmapSlider::CopyBackground function copies background before it is erased.
I am sorry, but I don't know how to solve this problem yet.
I'll update it immediately when I know it.
Thank you very much!
|
|
|
|
|
Did anyone figure out how to fix this yet?
Cheers,
Greg
|
|
|
|
|
Is it necessary setting up channel bitmap?
This is critical in real application with splash window which overlaps slider.
Well I should set the background bitmap until the bug fixed.
/E/X/T/R/E/A/L/M - In to the rain...
extrelam@perstel.co.kr.NOSPAM.COM
|
|
|
|
|
I resolve the problem whit this modify....
void CBitmapSlider::CopyBackground(
CDC *pDC, int nXSrc, int nYSrc, int nWidth, int nHeight, CBitmap *pBmDst)
{
if(pBmDst->GetSafeHandle())
{
.....
}
}
|
|
|
|