comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
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
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: Christian ASTOR
Date: May 16, 2008 07:44

On 16 mai, 14:02, k.bramh...@googlemail.com wrote:
> I have tried picking up the WM_GETDLGCODE message. This is being send
> to my dialog procedure. The return value of a dialog procedure is a
> BOOL so how can I return the values that are indicated in the MS
> documentation like DLGC_WANTALLKEYS (which has a value of 4)?
>

WM_GETDLGCODE is handled by subclassing controls.
But I don't understand when you say "What does not work is text
entry..."
Nothing is needed to enter text into Edit controls (fortunately..)
no comments
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: k.bramhill
Date: May 16, 2008 07:13

Partly solved, the following bit works for an editable combo control
so I can now enter text to it:-
I found that by trapping the WM_LBUTTONDOWN to set the focus I could
then test not only the msg.hwnd to see if it was one of my controls
but, if that failed, test the result of ::GetParent(msg.hwnd) and if
that fails ::GetParent(::GetParent(msg.hwnd)) to look for a recognised
hwnd and then pass the recognised hwnd to IsDialogMessage() as normal.

The above solution does not work for the standard "edit" class of
control that I create with something like this:
Show full article (1.28Kb)
no comments
  UI hangs as Countinously going into WM_PAINT         


Author: vidishasharma
Date: May 16, 2008 06:36

Hi

I have a winproc defined as follows:

private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam,
IntPtr lParam)
{
System.Windows.Forms.Message m =
System.Windows.Forms.Message.Create(hWnd, msg, wParam,
lParam);
switch (m.Msg)
{
case WM_SETCURSOR:
MessageBox.Show("Cursor changed");
break;
Show full article (1.16Kb)
no comments
  Accessing "in Use" Files == ?         


Author: shakuni.you.bet
Date: May 16, 2008 00:25

How can I access the files that are in-use by other processes. Say
there is this file called "locked.txt", which is in use by process A.
Now how can I copy this file to another location programmatically.
Normal methods will fail with the error "The process cannot access the
file because it is being used by another
process.".

Any ideas ?
no comments
  Problem In Programming Registry         


Author: shakuni.you.bet
Date: May 16, 2008 00:25

I have a tool that scans(parses) the registry for invalid entries and
deletes them.
I looked for things that are considered as "invalid registry entries"
and found many things that comes in the criteria, like following-

Missing shared dlls
Unused file extensions
activex issues
COM issues
class (Invalid or empty class) issues
MUI cache
etc.

My question is that how can I determine wheather an entry in a
registry is invalid or not according to above criteria.
1 Comment
  More Info Needed In Process Enumeration         


Author: shakuni.you.bet
Date: May 16, 2008 00:24

There is this tool that fetches the list of all the running processes
and then flags all those processes that are dangerous. Now getting the
list of all the running processes is trivial and has been discussed on
the forums infinite times. What I ask is how does the tool decides
wheather a process is dangerous or not. My first thought was that this
tool monitors all the api calls of all the processes and then based on
that info it determines the dangerous processes but this can't be true
since system processes uses almost same apis that are used by
dangerous processes (like accessing registries and files on disk
etc.). Any ideas? (otherwise I would have to reverse the program
myself to find out how it does that)
no comments
  Implementing Custom Subsystem == ?         


Author: shakuni.you.bet
Date: May 16, 2008 00:24

How can I implement my own custom subsystem in windows ?
no comments
  custom message on deletion of file...         


Author: shakuni.you.bet
Date: May 16, 2008 00:23

While deleting some files on windows XP, I get this message
"Deleting this File Will Make some Programs not Work"
I want to know weather I can produce a particular message, like above,
when a file gets deleted.

(May be I need to monitor certain files using hook, and when the hook
notifies me of their deletion, I show a messagebox like above. But I
want to know how "windows" do it).
2 Comments
  finding out application dependencies;         


Author: krish
Date: May 15, 2008 19:47

How can I find out the dependencies of an application inside my
program/driver? Say e.g If I want to find out the dependencies of
iexplorer.exe inside my program? What are the APIs? I knwo there is a
program something called dependency walker so I assume there must be
some way of doing this.

I want to provide a GUI which lists all the programs installed on the
computer and when user cselects one of them I lists all the files
(.dlls etc) on which it is dependent.
1 Comment
Your Ad Here
  C crash on free/malloc and sometimes printf         


Author: Nuno Magalhaes
Date: May 15, 2008 10:47

Hello,

I've done a small application that sometimes crashes on the free,
sometimes doesn't allocate memory correctly (malloc) and sometimes
crashes on printf flush procedure. What can I do to correct this
library?

The code follows below.

Thanks in advance.

/*! \file timerthread_win32.c
*/
#include
#include
#include
#include "timerthread.h"

/* Debug related definitions. */
#ifdef DEBUG_TIMERTHREAD
#define dprintf printf
#else
#define dprintf
#endif
Show full article (5.01Kb)
7 Comments
1 2 3 4 5 6 7 8 9