|
Thanks for ur response...
using GetTextExtentPoint() i got the width and height of the text...now how can i get
the rect using this width and height...
|
|
|
|
|
Hi,
In my application I need to control current the view of the folder opened in windows explorer.
User will start my application....He will also open a folder in the windows explorer. When he clicks a button in my application the view of the folder will change.(View means list,thumbnails,icon)
Please let me know where should i start?
Regards and thanx,
J
|
|
|
|
|
|
I may also need to implement keyboard shortcuts to the currently opened folder in the windows explorer to change views, so it cannot be hosted in my app.
|
|
|
|
|
Well, see, the trouble is that the concept of there being a single current folder open in Explorer (which you say is what you want to manipulate) is invalid. There may be any number of folders open in Explorer windows concurrently.
Try taking a step back and telling us what you're actually trying to accomplish with this - there may be ways other than the obvious, brute force method...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
Thanks,
Well, My application will install a keyvboard hook. When user depresses a key the active folders view will change.
Regards,
John.
|
|
|
|
|
hi Guys,
I just shifted from Visual Studio to Eclipse for C,C++ programming.
I downloaded the newest version Galileo and C,C++ is working fine.
However are there plugins for Eclipse that you would recommend?
Like Flowchart designers or Code re factoring tools, you know some stuff that I should be aware of.
Thanks in advance,
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
Last time I tried to use Eclipse (for C++ development) it was painly slow and (IMHO) deadly counter-intuitive. I know it is just a personal feeling (and I didn't deelve into), but, anyway...Good luck!
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]
|
|
|
|
|
Thanks.
I had some strange experience while I was coding Java on it.
However I hope with the newest version of Eclipse, they where more or less corrected.
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
Hi ,
can we create thread in Single Threaded component . Suppose my component is derived from
CComSingleThreadModel now can I create multiple thread in this component .
|
|
|
|
|
Yes, you may spawn as many threads as you like.
However, if you plan to use interfaces to COM servers created in the main thread you need to initialize COM in your other threads by calling ::CoInitialize() , or one of its equivalents, in order to setup COM for that thread and you will also need to marshal interfaces properly into the new thread.
Lim Bio Liong has written a nice article series on the subject starting here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: Lim Bio Liong has written a nice article series on the subject starting here[^].
I wasn't aware of those articles - they're splendid - thanks for posting the link.
The event handling one's good as well - I'd have loved to have known about that one in the past, if only so that I could point people at it, rather than try and explain stuff myself!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: those articles - they're splendid - thanks for posting the link.
Yep, they are really well written.
You're most welcome Stuart.
Stuart Dootson wrote: if only so that I could point people at it, rather than try and explain stuff myself!
Amen to that!
Otherwise the replies we write may become quite large and tedious....
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
hi
i'm a beginner. i want to write a calculator but i don't know how can i convert CString to int. i search in MSDN but it was useless!
please help me.
thanks.
|
|
|
|
|
Use _ttoi .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
simple.
atoi(string) sould help you.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
chandu004 wrote: atoi(string) sould help you.
Only in the case when UNICODE is not defined. The suggestion from Superman is better, it is independant of whether UNICODE is defined or not.
|
|
|
|
|
many more thanks for correcting me.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
thanks 4 ur attention. 4 sure, i test it and say the result.
|
|
|
|
|
If you're entering values in a edit box, for instance, then you don't need such conversion at all: you may directly map a integer variable to the edit box content.
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 use this but i can't set a int variable because of adding number with button like windows calculator. see it.
thanks for ur attention.
|
|
|
|
|
If you're using buttons to enter numbers, then why do you need a CString variable?
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]
|
|
|
|
|
|
Yes! To deceive the enemy! You're right!
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]
|
|
|
|