|
did you try the WS_CLIP_CHILDREN flag? This alone would reduce a hell of a lot of flicker.
|
|
|
|
|
Good point! For whatever reason, when I see bitmap background code
I think skin, transparent controls, etc. For normal controls WS_CLIPCHILDREN
will work great!
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I've tried the following within ::OnInitDialog()
this->ModifyStyle(0, WS_CLIPCHILDREN);
but then nothing in the Dialog updates
|
|
|
|
|
Can someone tell me how to display the "inifinity symbol" inside of a listview item. For example, i was just using Azureus (bit torrent client) and noticed that they used this symbol under its ETA column. How do i do this?
Thanks
|
|
|
|
|
The string literal is:
"\xEC" (ASCII)
L"\x221E" (Unicode)
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
There are two basic methods they might be using.
1. Font selection. They might have set the list ctrl font, or at least the font used when painting that part of the list ctrl, to a symbol font with an infinity symbol and then put ordinary text in the control corresponding to the charatcer number for the infinity symbol in the symbol font.
2. Overriding painting. They might have overriden aspects of the list control either using the custom draw, or owner draw approaches, probably custom draw and then be simply drawn the infinity symbol with a bit of GDI code, probably using a cached bitmap.
Search around for Custom Draw examples and Symbols fonts like WingDings. You'll have it cracked in no time.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Does anyone know where I can find a "Thumb Wheel" control?
It looks like a dial turned on its side with ridges on its edge (like a quarter) and it would be used like a slider to adjust a value.
A picture of a GUI that shows what I am looking for can be found here:
http://www.steptools.com/products/stviewer/images/st-viewer.gif[^]
Beth
-- modified at 10:31 Thursday 6th September, 2007
|
|
|
|
|
bscaer wrote: Does anyone know where I can find
You mean besides the internet?
|
|
|
|
|
In the documentation maybe ?
|
|
|
|
|
Did you see Button section on the codeproject?
|
|
|
|
|
I'm sure you could derive from the scrollbar class to create your own.
|
|
|
|
|
Create a class which derives from the CScrollBar class. The Thumb Wheel control functionality is similar to the scroll bar functionality. Instead of changing the view position with GetScrollPos() do your task. For example as in the figure shows rotate the image horizantally or vertically. And you can set range of angle (i.e 0-360) with the help of SetScrollRange(). On the OnPaint of your class draw the Thumb Wheel control as per your wish.
All the best....
Let me know your success.
Sreedhar DV
|
|
|
|
|
Hi I am using CreateWindowEx to call Create a new Window which has "tooltips_class32" (TOOLTIPS_CLASS) class and parent window as my Dialog Box. I am using Following code for that.
I am Using Win32 Application
<br />
ToolTipWnd = ::CreateWindowEx(WS_EX_TOPMOST,<br />
TOOLTIPS_CLASS,<br />
NULL,<br />
TTS_NOPREFIX | TTS_ALWAYSTIP,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
hWndDlg,
NULL,<br />
hInst,<br />
NULL);<br />
<br />
if ( ToolTipWnd == NULL )<br />
{<br />
DWORD Error;<br />
Error = GetLastError();<br />
MessageBox(NULL,L"Error",L"",0);<br />
}<br />
But I am getting 1407 as Erro Code which says "Cannot find window class".
I dont know where m i wrong. If you know please help me.
|
|
|
|
|
From MSDN (here)[^]:
To create a ToolTip control, call CreateWindowEx and specify the TOOLTIPS_CLASS window class. This class is registered when the common control DLL is loaded. To ensure that this DLL is loaded, include the InitCommonControlsEx function in your application.
Did you call InitCommonControlsEx function ?
|
|
|
|
|
Stop reading the documentation
|
|
|
|
|
You know, they hide a lot of usefull things in the documentation
|
|
|
|
|
They hide that information in the documentation[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: They hide that information in the documentation
Your sentence is acquainted for me
|
|
|
|
|
Sweet link. I would comment on that pages link to "Signal to Noise Ratio" pertaining to internet forums etc., related to CPs forums, but you can't comment on it without being hypocritical.
Reading the page further it gets interesting regarding the rules adopted by other forums banning the poor attitude of an RTFM or JFGI response. Perhaps I need to go read that occasionally to keep myself in line.
Last modified: 14mins after originally posted --
|
|
|
|
|
Thnx for help.
Now I am using the Function given in the MSDN to Show the tooltip on one of Button in my Dialog based Application.
As it doesnt give any Error it also not showing any tooltip.
If you know anything more about this Tool tip please Inform me.
|
|
|
|
|
Now I Include the things and use the Functio given in MSDN and BAM !!!. No Error ! . but there is no Tooltip too.
Can u tell me what is goint on.
I am Using Win2000 Pack 4.
is it supported in this.
|
|
|
|
|
Hi all,
When I select or deselect multiple items on ListView control, I will get a lot of LVN_ITEMCHANGED messages. The problem is, how do I get the last one only, or how do I know it is the last one? I want to modify my data after it stop changing. Thanks for your help.
|
|
|
|
|
Look for the one whose state is LVIS_SELECTED .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Do you mean the information in NM_LISTVIEW structure? I have monitored the messages. Some previous messages also have this state on, and the last one doesn't always has this state either.
|
|
|
|
|
hsuch wrote: Do you mean the information in NM_LISTVIEW structure?
Yes.
hsuch wrote: Some previous messages also have this state on...
Which indicates your list control does not have the LVS_SINGLESEL style.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|