comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
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
  Using CPropertySheet         


Author: Vaibhav Gade
Date: May 16, 2008 21:40

I want to create a property sheet without having any property pages.Is
it possible?.

Right now i m creating property sheet by adding 1 page.I want to hide
the property sheet window after creating it. How can i achieve it?
1 Comment
  get window's titles         


Author: Bruno Duarte
Date: May 16, 2008 20:25

hello! i am from brasil!
I want capture title from all windows in the taskbar.
please post complete code in c or c++.

thankyou!!!!!!!!!
1 Comment
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: Norman Bullen
Date: May 16, 2008 17:37

k.bramhill@googlemail.com wrote:
> I have a blank custom dialog I'm using to add other child controls to.
> I've jumped through the hoops to get things like tab to work, I pass
> things to IsDialogMessage() and my dialog is fine with buttons, drop
> down selection and so on.
>
> What does not work is text entry, (e.g. like "ABC"), to edit controls
> and combo boxes.
>
> I have forced the focus on an edit or combo box by trapping a left
> click on it and then setting the focus to it. When this happens I can
> move left/right in the text and I can delete it. I can not get it to
> take new character though!
>
> 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)?
>
> I have tried reposting the message to my main windows handler and ...
Show full article (1.57Kb)
no comments
  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)
2 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 ?
3 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)
3 Comments
  Implementing Custom Subsystem == ?         


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

How can I implement my own custom subsystem in windows ?
1 Comment
1 2