|
Thanks for your reply Ricky - the problem is that GetFont() returns NULL when I call it from within OnCreate() of a control (not only on the tab control btw, also my CMDIChildWnd()-derived class). What controls have a font set? And when is it set?
|
|
|
|
|
Hi
Does anyone have some code snippets to copy a binary file to another directory?
Greetings
Jens
|
|
|
|
|
|
Thanks, does this SDK function work on all windows operatingssystems (95+)?
|
|
|
|
|
Yes, according to MSDN
(Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.)
However, there's no progress indication - so for a long file it will just sit there. CopyFileEx allows progress and cancelling - but it's NT4+ only
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
ok thank alot m8
btw, is your name Peter Chen? :PP
|
|
|
|
|
|
How many times have you been asked that question?
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Once to often I suppose
It's hard to keep track for the (infrequent) appearance of finest asian calligraphy in my inbox. Unfortunately, I can't tell if these are people asking me if I live close to them, or yet another body part enlargement program.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
SHFileOperation() is another option. It has a "simple" progress bar and works on all platforms.
|
|
|
|
|
I'm now finding a way to reduce a JPEG picture using IPicture and some example of using SaveAsFile function.
Thx
|
|
|
|
|
hi,
In my program i use synchronize http connection mode.
but i want to use asynchronous.
so, i need full code of http asynchronous connection.
if anybody have that please send me.
e-mail:no_body69@hotmail.com
thanks,
|
|
|
|
|
Dear,
I have made a tree control with checkboxex on a dialog application. I used following code in initdialog:
------------------------------------
HTREEITEM root;
root = m_extensiontree.InsertItem("Extension", 3,3, TVI_ROOT);
m_extensiontree.InsertItem("doc",0,0,root);
m_extensiontree.InsertItem("txt",1,1,root);
m_extensiontree.InsertItem("txt",2,2,root);
m_extensiontree.InsertItem("txt",3,3,root);
------------------------------------
I want the second item to be checked by default. How is it possible. I tried using
m_extensiontree.SetCheck(root,TRUE);
But it is not showing . Why ??
Please guide
Rohit
|
|
|
|
|
Use SelectItem(). For that you'll need to keep trace of all your items handle.
~RaGE();
|
|
|
|
|
|
Hi peterchen,
I am not using any Imagelist in my program.I am using the checkboxes provided by the CTreeCtrl only. I just want to check some items in a tree during initialization. I wrote the following code but it is getting checked ones.
=============
#define CHECK 1
#define MAXFT 10
HTREEITEM root;
root = m_extensiontree.InsertItem("Extension", 3,3, TVI_ROOT);
CString str[MAXFT] = {"doc","txt","htm","html","bmp","pdf", "rtf", "xls", "tmp", "lnk"};
for(int i=0;i
|
|
|
|
|
a) Checkbox Indices are 1-based so 1 is unchecked, 2 is checked
b try to set the checkmark *after* OnInitDialog. IIRC there was a comctl32 version that did not handle state changes in WM_INITDIALOG correctly (or maybe this was with the list control)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
Dear Peterchen,
First of all I am sorry for disturbing you again.
I changed the indeces of CHECK to 2 but still it is not working. Is there some problem with the Comctl32.dll ?? I am working on XP machine and using VC 6.May I download the latest dll for this ??
Or is there some fault in the code ? I am using this code in a function ie. mytree() and calling it after
CDialog::OnInitDialog()
Or can you/anybody please send some sample code for this ?
Thanks a lot.
Rohit
|
|
|
|
|
Hi,
I've 2 EXEs.
Say A & B.
A always runs in Administrator mode (spooler is one example) - even if we log onto the system as any user and run it.
I've to (in some cases) run B from A. Since A (which is in admin mode) is creating process B - process B is also now in Admin mode.
Can I in process B - make it run in the currently active logged on user in a particualr system.
This has nothing to do with network - its just the multiple user accounts in one system.
Can you please help me out.
Thanx
Srinivas
|
|
|
|
|
You can get the current user context from Process B
Then use ImpersonnateLoggedOnUser (See MSDN) in process B to work under that user context.
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
In a LAN, there are Plotters/Printers connected to few servers
We need to log
a.File Name being Plotted/Printed
b.From which machine the Command was issued to the server,what time
c.The user logged on to the machine from where the print command was issued...
How do we log the above information using VC++(either MFC or ATL or Windows API)
The application needs to be deployed on Windows NT as well as 9x systems
on NT system, it can be deployed as a NT service, but what bout 9x systems, even the user logged on the server should not be able to shut down the application...
Can anyone provide some information...
|
|
|
|
|
i am trying to make the application frame
just looks like photoshop in windows 2000.
Right now i am having problem to make 4
modeless dialog boxes active (title bars
are all blue) as well as mdi document view
simultaneously. does anyone have solution
to this.
Thanks in advance.
Shinya
|
|
|
|
|
|
I use PostMessage method to update a dialog box through a thread outside of my dialog box class like this:
<br />
CMyThread::update()<br />
{<br />
m_pDlg->PostMessage(UM_UPDATEDIALOG);<br />
}<br />
this code works properly in debug version but in release there is an exception in PostMessage function.
How can I solve this problem.
|
|
|
|
|
I think using PostThreadMessage would be better. Also check how the message queue is handled in your target thread.
~RaGE();
|
|
|
|