Up |
|
|
  |
Author: Vaibhav GadeVaibhav 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 |
|
  |
Author: Bruno DuarteBruno 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 |
|
  |
Author: Norman BullenNorman Bullen
Date: May 16, 2008 17:37
> 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
|
|
  |
Author: Christian ASTORChristian ASTOR
Date: May 16, 2008 07:44
> 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
|
|
  |
Author: k.bramhillk.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
|
|
  |
Author: vidishasharmavidishasharma
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 |
|
  |
Author: shakuni.you.betshakuni.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 |
|
  |
Author: shakuni.you.betshakuni.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 |
|
  |
Author: shakuni.you.betshakuni.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 |
|
  |
|
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:24
How can I implement my own custom subsystem in windows ?
|
| |
|
1 Comment |
|
|
|
|
|