comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  find command         


Author: Rafael C. Almeida
Date: Feb 23, 2008 23:09

Hello,

I'm interested into knowing how do a search for files using the C
language, much like the find program on unix. I want to be able to walk
through all the files in the system. Would someone point me to some
online reference where I might find what I need?

I'm really lost on windows programming, although I have some experience
with unix programming. So if someone would point me towards some
"windows programming for unix programers" kinda guide I'd greatly
apreciate as well.

[]'s
Rafael
4 Comments
  How to deal with a program which only closes on PC shutdown         


Author: Angus
Date: Feb 23, 2008 08:52

Hello

I have written a Windows GUI program which runs on system startup. The
program is simply in the Startup group.

I have some cleaning up routines which are run when the program closes. So
if the user quits the application normally the cleanup routimes run. It is
a little more than cleanup because the client needs to tell a server that it
is closing.

When the user simply shuts down their computer then my cleanup is not run.
I tried logging if any of the following events were detected:
WM_CLOSE
WM_DESTROY

But no log entry for any of the above.

My code writes to a log file. So problem may be that it is just not
possible to write anything to a file when closing. Has anyone come across
this issue? Any ideas on how to intercept the program being closed on PC
shutdown and being able to perform some actions.

Angus
5 Comments
  TIP: Tool Tips for Disabled Controls         


Author: Bob Masta
Date: Feb 23, 2008 05:11

Tool Tips don't normally appear for disabled controls.

As a fall-back, I normally provide for right-click to pop up Help on
all controls, including disabled ones, but sometimes that's overkill:
A simple Tool Tip could tell a new user what the control does, and
that may be enough for them to understand why it's disabled at the
time.

There are good reasons why the Tool Tip mechanism can't deal with
disabled controls, and I've seen some work-arounds discussed.
Here is a dead-simple one I've come up with: Just create a static
control with no text that has the same coordinates, and give it the
SS_NOTIFY style. Put it ahead of the target control in the resource
order, so the target control will be drawn over it. (If you put it
later, it will erase the target control.) Then set the Tool Tip to
that static control instead of the true target. That's it!

Hope this helps...

Bob Masta
Show full article (1.09Kb)
1 Comment