|
Hi,
I want the following view on the CListCtrl, report view.
|Column A|Column B|Column C|Column D|
|Bitmap1 | Bitmap2 | Bitmap3 | Text |
Bitmap images in the three columns, and a text in the third column.
I am so confused about how to implement it.
I tried with this Neat Stuff to Do in List Controls Using Custom Draw[^] sample using custom draw, but could display bitmap in 1st column only.
I would like the row height(=Height of bitmap) to be larger then the default row height.
|
|
|
|
|
Have you tried the SetItem() method?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi All,
As we know integer has value limitation's(ex +_32767) depends upon bit range(ex 32 bit,16 bit).
i'm working with an integer variable which gets input from text box(designed as Activex control).
my condition is if the user enters the value in text box greater than 10 means it should show the error symbol otherwise correct symbol.
so the problem is if i enter the value 10 to 36767 means it shows alert symbol. if it is above 32767 means it shows correct symbol.
How can i solve this integer value Rotation Problem?
waiting for u
|
|
|
|
|
rrthangavel wrote: As we know integer has value limitation's(ex +_32767) depends upon bit range(ex 32 bit,16 bit).
It is (usually) -32768..32767 for signed shorts.
rrthangavel wrote: How can i solve this integer value Rotation Problem?
Do you mean wrap-around problem?
It depends on how much control you have on the input. For instance, if you can read the input string, then a length > 2 is an error condition.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
00000000000000000000000000000000000000000000000000000000000000000001
|
|
|
|
|
That's simply silly and the user must be punished for...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Can't you simply use unsigned values ?
|
|
|
|
|
You are going to have to add an event handler for OnChange so that you check the input on edit.
|
|
|
|
|
|
Hello All,
I need to intercept everytime user use delete,shift-delete or use DEL command from command promt, I need to know what API get called when we use DELETE, SHIFT+DELETE and DEL command, I'll be very much obliged if anyone can redirect me to how to intercept-Hook those calls..
Looking forward to see members reply, and i'm using VC 6.0 and WIN DDK 7.1.
Thanks all
|
|
|
|
|
What exactly are you working on that needs to intercept the function calls and that needs the DDK and are using VC 6.0? But, this is simple to implement if you know where to look.
There are quite a few articles on how to intercept/hook a function call, especially a windows one.
|
|
|
|
|
I need to intercept if anyone delete the file and verify if it's authorized user to perform the action..
elchupathingy wrote: and that needs the DDK and are using VC 6.0?
What are other way to perform this apart of making driver?
elchupathingy wrote: There are quite a few articles on how to intercept/hook a function call, especially a windows one.
That's what i need, I couldn't find or i would say i couldn't find right articles, Can you post some link?
Thanks for your reply..
|
|
|
|
|
[]
[]
Those should get you started.
|
|
|
|
|
|
|
I want to add combo box items to the list control
How to add items to combobox
and where to add combo box items.
to the tree list control
Pls help me.
|
|
|
|
|
|
i want to insert (strings to) combo box of the treelistcontrol
developed by TigerX
[]
|
|
|
|
|
Sakhalean wrote: i want to insert (strings to) combo box of the treelistcontrol
developed by TigerX
Have you tried asking "tigerx" ?
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
Hi All,
I create one sample win32 console application, which that application working for timer basis.
Example :
If the user gives the stared work is 1:00 AM and End Work is 3:30 AM and the current time is 1:30 AM then application will be in active till 3:30 AM. It automatically goes to idle state, if the system time crosses the end time that have been configured. The application will start again with in the timeframe on next day and so on.
how to achieve this application using threading
please share your valuable thoughts
Thanks n advance
Raju K
Failure is Success If we learn from it!!
|
|
|
|
|
Cannot you just use a timer (see"Using Timers"[^]) for the purpose?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I will give you only some leads and not spoon feed you. What you have to do is something like this.
HANDLE hEvent;
long FunctionThread(void*)
{
while(true)
{
WaitForSingleObject(hEvent, NULL);
}
return 0;
}
long TimerCheckThread(void*)
{
while(true)
{
if(timeout)
{
SetEvent(hEvent);
}
}
return 0;
}
void Setup()
{
hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
}
Event is something that allows synchronization of threads. WaitForSingleObject(...) function waits until the event is set and won't consume valuable CPU cycles. So, that job is going to start only after the time out has occurred.
Read more about the terms that you encounter here and after you understand, you can easily build on this example.
...byte till it megahertz...
|
|
|
|
|
hi all..
Im looking for a code to block bluetooth in windows so that it can not communicate with other device having bluetooth..
Please Help its URGENT..
Tanu
|
|
|
|
|
Nah, we don't encourage URGENT repressive policies.
On the serious side, really I don't know. Why do you want to turn off it programmatically (just curiosity)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi..
I need to block bluethooth through code so thar no one is able take my code by using any other bluethooth device..
If u cn plz help me..
|
|
|
|