Notification when a window is subclassed

Is there a way for an application to be notified when one of it's
windows is being subclassed?

The scenario am dealing with is that I subclass a window to take a
crack at a few messages. But the implementation of one of the messages
that am not interested in and hence destined for the OriginalWndProc
is seeming to subclass the Window once again. I am kinda lost at this
point, because neither am I getting those select messages anymore nor
am I being notified that the Window was further subclassed after I
did.

Any suggestions?
Ranjit
0
4/8/2008 4:43:28 PM
vc.mfc 33608 articles. 0 followers. Follow

8 Replies
808 Views

Similar Articles

[PageSpeed] 39

What kinda of window?  When are you subclassing it?

There are alot of tiny details that are needed to even hint at an answer to 
your question.

Which message do you think results in the ghost subclassing.

AliR.



"Ranjit" <ranjitiyer@gmail.com> wrote in message 
news:36bf0427-b036-4b1b-81d5-bb2c97e6b5b1@a23g2000hsc.googlegroups.com...
> Is there a way for an application to be notified when one of it's
> windows is being subclassed?
>
> The scenario am dealing with is that I subclass a window to take a
> crack at a few messages. But the implementation of one of the messages
> that am not interested in and hence destined for the OriginalWndProc
> is seeming to subclass the Window once again. I am kinda lost at this
> point, because neither am I getting those select messages anymore nor
> am I being notified that the Window was further subclassed after I
> did.
>
> Any suggestions?
> Ranjit 


0
AliR3470 (3235)
4/8/2008 5:02:16 PM
This is a very vague question.  For example, you can't "subclass" the window of another
application; you can only subclass windows in your *own* application.  There is a
PreSubclassWindow event that is called for your subclass before the subclassing actually
occurs.

But there are two kinds of subclassing: the MFC style of subclassing and the classic
"Windows API" subclassing.  There is NO possibility of "notification" of the second kind
of subclassing.

When you subclass a window at the API level, it is your responsibility to maintain the
original function pointer and CallWindowProc on that function if you don't process the
message.  If you are using MFC subclassing, you just call the superclass method.

You can use hooks to intercept messages going to a window in another application, but that
is not consistent with the description you have given below.

You will need to illustrate this with some code.
					joe

On Tue, 8 Apr 2008 09:43:28 -0700 (PDT), Ranjit <ranjitiyer@gmail.com> wrote:

>Is there a way for an application to be notified when one of it's
>windows is being subclassed?
>
>The scenario am dealing with is that I subclass a window to take a
>crack at a few messages. But the implementation of one of the messages
>that am not interested in and hence destined for the OriginalWndProc
>is seeming to subclass the Window once again. I am kinda lost at this
>point, because neither am I getting those select messages anymore nor
>am I being notified that the Window was further subclassed after I
>did.
>
>Any suggestions?
>Ranjit
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15972)
4/8/2008 5:23:04 PM
On Apr 8, 12:43 pm, Ranjit <ranjiti...@gmail.com> wrote:
> Is there a way for an application to be notified when one of it's
> windows is being subclassed?
>
> The scenario am dealing with is that I subclass a window to take a
> crack at a few messages. But the implementation of one of the messages
> that am not interested in and hence destined for the OriginalWndProc
> is seeming to subclass the Window once again. I am kinda lost at this
> point, because neither am I getting those select messages anymore nor
> am I being notified that the Window was further subclassed after I
> did.
>
> Any suggestions?
> Ranjit



Why do you need this? Just subclass the window and deal with messages
that you want. If you are not getting messages, make sure messages are
being delivered (used Spy++ to confirm it) and that these are not
being forwarded to your windows procedure (and not already consumed).
I use CSubClassWnd class (search MSDN) for this; its very useful.

--
Ajay
0
ajaykalra (6842)
4/8/2008 6:27:25 PM
Thanks for your responses. For starters, all of this subclassing
activity is happening within the *same* application. Secondly, am
constrained to using the raw Win32 API.

Before I provide code details, here's rougly what am trying to
achieve. I have a Java UI application that hosts a few third-party COM/
ActiveX controls in it. One of the challenges of this integration is
Focus Management. Java's focus manager is unaware of these COM objects
sitting on it's canvas and hence doesn't account for them in it's
implementation of focus management. This results in two problems:

1. An ActiveX control that currently has the focus (by clicking on it)
does not get it back when the application regains focus, say when the
user switches away and then switches back on to app.
2. Focus does not cycle (using the Tab and Shift-tab keys) seamlessly
between Java UI elements and the ActiveX controls.

To fix these focus related problems am writing some bridging code that
works with Java's focus manager to make it aware of the ActiveX
controls hosted on it's canvas. For the implementation to work I need
to know when the ActiveX control gained focus (WM_SETFOCUS) and when
it receives the Tab and Shift-Tab key events (WM_KEYDOWN).

So when the application is being realized I create the control and
then subclass it by supplying my own window procedure. For events that
don't interest me I forward them to the OriginalWndProc.

/* Subclassing code */

  // Get the Hwnd of the control from the Control host.
HWND controlWindow = GetWindow(atlAxWin, GW_CHILD);
  // Subclass the Window
WNDPROC controlWndProc = (WNDPROC)SetWindowLong(controlWindow,
GWL_WNDPROC, (LONG)SubclassProc);
  // Remember the original WndProc
BOOL res = SetProp(controlWindow,
_T("OcxFocusMgr_ControlOrigWndProc"), (HANDLE)controlWndProc);



/* My WndProc */

LRESULT CALLBACK SubclassProc(HWND hwnd, UINT message, WPARAM wparam,
LPARAM lparam)
{
  HANDLE origWndProc = GetProp(hwnd,
L"OcxFocusMgr_ControlOrigWndProc");

  switch(message)
  {
  case WM_SETFOCUS:
    {
      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
message, wparam, lparam);
            // Do something.
      return result;
    }
    break;
  case WM_KEYDOWN:
    if(wparam == VK_TAB)
    {
      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
message, wparam, lparam);

      if(GetKeyState(VK_SHIFT) < 0) // Shift-Tab
        // Do something
      else
        // Do something else
      return result;
    }
    break;
  }
  return CallWindowProc((WNDPROC)origWndProc, hwnd, message, wparam,
lparam);
}

This works fine until the time that the control tries to internally
load a particular file at which time it again subclasses this very
window that I originally subclassed. The sad part is I can't know when
it does that - it could be a result of an explicit UI operation or a
side-effect of something else. As a result I stop receiving the events
that am interested in which causes my focus mgt solution to stop
working.

I hope I was able to clearly explain what am trying to get at. Based
on this I would appreciate any suggestions you may have.

Ranjit
P.S - I will research PreSubClassWindow in the meanwhile.


On Apr 8, 10:23 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
> This is a very vague question.  For example, you can't "subclass" the window of another
> application; you can only subclass windows in your *own* application.  There is a
> PreSubclassWindow event that is called for your subclass before the subclassing actually
> occurs.
>
> But there are two kinds of subclassing: the MFC style of subclassing and the classic
> "Windows API" subclassing.  There is NO possibility of "notification" of the second kind
> of subclassing.
>
> When you subclass a window at the API level, it is your responsibility to maintain the
> original function pointer and CallWindowProc on that function if you don't process the
> message.  If you are using MFC subclassing, you just call the superclass method.
>
> You can use hooks to intercept messages going to a window in another application, but that
> is not consistent with the description you have given below.
>
> You will need to illustrate this with some code.
>                                         joe
>
> On Tue, 8 Apr 2008 09:43:28 -0700 (PDT), Ranjit <ranjiti...@gmail.com> wrote:
> >Is there a way for an application to be notified when one of it's
> >windows is being subclassed?
>
> >The scenario am dealing with is that I subclass a window to take a
> >crack at a few messages. But the implementation of one of the messages
> >that am not interested in and hence destined for the OriginalWndProc
> >is seeming to subclass the Window once again. I am kinda lost at this
> >point, because neither am I getting those select messages anymore nor
> >am I being notified that the Window was further subclassed after I
> >did.
>
> >Any suggestions?
> >Ranjit
>
> Joseph M. Newcomer [MVP]
> email: newco...@flounder.com
> Web:http://www.flounder.com
> MVP Tips:http://www.flounder.com/mvp_tips.htm

0
4/8/2008 6:37:34 PM
> Thanks for your responses. For starters, all of this subclassing
> activity is happening within the *same* application. Secondly, am
> constrained to using the raw Win32 API.
.....
....
> P.S - I will research PreSubClassWindow in the meanwhile.

Since you are not using MFC, you cant use this
(CWnd::PreSubClassWindow).

--
Ajay

0
ajaykalra (6842)
4/8/2008 6:55:17 PM
Java has a single window, on which it paints all the images that look like buttons, etc.,
so it does not Play Well With Others in this regard.


On Tue, 8 Apr 2008 11:37:34 -0700 (PDT), Ranjit <ranjitiyer@gmail.com> wrote:

>Thanks for your responses. For starters, all of this subclassing
>activity is happening within the *same* application. Secondly, am
>constrained to using the raw Win32 API.
>
>Before I provide code details, here's rougly what am trying to
>achieve. I have a Java UI application that hosts a few third-party COM/
>ActiveX controls in it. One of the challenges of this integration is
>Focus Management. Java's focus manager is unaware of these COM objects
>sitting on it's canvas and hence doesn't account for them in it's
>implementation of focus management. This results in two problems:
>
>1. An ActiveX control that currently has the focus (by clicking on it)
>does not get it back when the application regains focus, say when the
>user switches away and then switches back on to app.
>2. Focus does not cycle (using the Tab and Shift-tab keys) seamlessly
>between Java UI elements and the ActiveX controls.
>
>To fix these focus related problems am writing some bridging code that
>works with Java's focus manager to make it aware of the ActiveX
>controls hosted on it's canvas. For the implementation to work I need
>to know when the ActiveX control gained focus (WM_SETFOCUS) and when
>it receives the Tab and Shift-Tab key events (WM_KEYDOWN).
>
>So when the application is being realized I create the control and
>then subclass it by supplying my own window procedure. For events that
>don't interest me I forward them to the OriginalWndProc.
>
>/* Subclassing code */
>
>  // Get the Hwnd of the control from the Control host.
>HWND controlWindow = GetWindow(atlAxWin, GW_CHILD);
>  // Subclass the Window
>WNDPROC controlWndProc = (WNDPROC)SetWindowLong(controlWindow,
>GWL_WNDPROC, (LONG)SubclassProc);
****
LONG is incorrect here.  It should be something like 
	WNDPROC controlWndProc = (WNDPROC)::SetWindowLongPtr(controlWindow,
			GWLP_WNDPROC,
			(LONG_PTR)SubclassProc);
****
>  // Remember the original WndProc
>BOOL res = SetProp(controlWindow,
>_T("OcxFocusMgr_ControlOrigWndProc"), (HANDLE)controlWndProc);
>
>
>
>/* My WndProc */
>
>LRESULT CALLBACK SubclassProc(HWND hwnd, UINT message, WPARAM wparam,
>LPARAM lparam)
>{
>  HANDLE origWndProc = GetProp(hwnd,
>L"OcxFocusMgr_ControlOrigWndProc");
>
>  switch(message)
>  {
>  case WM_SETFOCUS:
>    {
>      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
>message, wparam, lparam);
>            // Do something.
>      return result;
>    }
>    break;
>  case WM_KEYDOWN:
>    if(wparam == VK_TAB)
>    {
>      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
>message, wparam, lparam);
>
>      if(GetKeyState(VK_SHIFT) < 0) // Shift-Tab
>        // Do something
>      else
>        // Do something else
>      return result;
>    }
>    break;
>  }
>  return CallWindowProc((WNDPROC)origWndProc, hwnd, message, wparam,
>lparam);
****
This looks like perfectly fine code.
****
>}
>
>This works fine until the time that the control tries to internally
>load a particular file at which time it again subclasses this very
>window that I originally subclassed. The sad part is I can't know when
>it does that - it could be a result of an explicit UI operation or a
>side-effect of something else. As a result I stop receiving the events
>that am interested in which causes my focus mgt solution to stop
>working.
****
Who subclasses it?  For what reason?  Have you looked at the GWLP_WNDPROC value?  This may
be indicative of who is subclassing it, for example.

Note that whomever is subclassing it has failed to properly call the superclass (which is
you)

But there is no way to find out who is subclassing it.  It could be that Java is
gratuitously re-subclassing it to its own code, but if properly done, this should not pose
a problem.  Your code looks correct.
****
>
>I hope I was able to clearly explain what am trying to get at. Based
>on this I would appreciate any suggestions you may have.
>
>Ranjit
>P.S - I will research PreSubClassWindow in the meanwhile.
****
This won't help what you are trying to do.  Your approach appears to be correct.  But
someone else is doing you in.
****
>
>
>On Apr 8, 10:23 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
>> This is a very vague question.  For example, you can't "subclass" the window of another
>> application; you can only subclass windows in your *own* application.  There is a
>> PreSubclassWindow event that is called for your subclass before the subclassing actually
>> occurs.
>>
>> But there are two kinds of subclassing: the MFC style of subclassing and the classic
>> "Windows API" subclassing.  There is NO possibility of "notification" of the second kind
>> of subclassing.
>>
>> When you subclass a window at the API level, it is your responsibility to maintain the
>> original function pointer and CallWindowProc on that function if you don't process the
>> message.  If you are using MFC subclassing, you just call the superclass method.
>>
>> You can use hooks to intercept messages going to a window in another application, but that
>> is not consistent with the description you have given below.
>>
>> You will need to illustrate this with some code.
>>                                         joe
>>
>> On Tue, 8 Apr 2008 09:43:28 -0700 (PDT), Ranjit <ranjiti...@gmail.com> wrote:
>> >Is there a way for an application to be notified when one of it's
>> >windows is being subclassed?
>>
>> >The scenario am dealing with is that I subclass a window to take a
>> >crack at a few messages. But the implementation of one of the messages
>> >that am not interested in and hence destined for the OriginalWndProc
>> >is seeming to subclass the Window once again. I am kinda lost at this
>> >point, because neither am I getting those select messages anymore nor
>> >am I being notified that the Window was further subclassed after I
>> >did.
>>
>> >Any suggestions?
>> >Ranjit
>>
>> Joseph M. Newcomer [MVP]
>> email: newco...@flounder.com
>> Web:http://www.flounder.com
>> MVP Tips:http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15972)
4/8/2008 7:01:45 PM
Thanks Joseph and Ajay,

I did finally realize that I might be trying to solve a problem that
isn't cause by me after all. Every subclasser must remember the
previous subclasser and pass the messages down (or up?). I did confirm
that the subclasser (after me) is some code in the ActiveX control and
not in Java.

Now, it could be the case that the ActiveX control is holding on to
the original WndProc address very early on even before I get a chance
to subclass it and is then using that old value later on when it
subclasses again. So the control isn't accounting for the fact that
there could be multiple subclassers other than itself. My code is
agnostic of it's position in the order of subclassers; it just needs
to receive the msgs.

I have been treating the control as a third-party component for the
purposes of this discussion but the good part is that the code is
available; it's just owned by a different team within the company. So
I'll look through the code and see what's going on therein.

Thanks for all your help. I'll summarize the issue if I find a
solution or ask more questions if I need further advise.

Ranjit

On Apr 8, 12:01 pm, Joseph M. Newcomer <newco...@flounder.com> wrote:
> Java has a single window, on which it paints all the images that look like buttons, etc.,
> so it does not Play Well With Others in this regard.
>
>
>
> On Tue, 8 Apr 2008 11:37:34 -0700 (PDT), Ranjit <ranjiti...@gmail.com> wrote:
> >Thanks for your responses. For starters, all of this subclassing
> >activity is happening within the *same* application. Secondly, am
> >constrained to using the raw Win32 API.
>
> >Before I provide code details, here's rougly what am trying to
> >achieve. I have a Java UI application that hosts a few third-party COM/
> >ActiveX controls in it. One of the challenges of this integration is
> >Focus Management. Java's focus manager is unaware of these COM objects
> >sitting on it's canvas and hence doesn't account for them in it's
> >implementation of focus management. This results in two problems:
>
> >1. An ActiveX control that currently has the focus (by clicking on it)
> >does not get it back when the application regains focus, say when the
> >user switches away and then switches back on to app.
> >2. Focus does not cycle (using the Tab and Shift-tab keys) seamlessly
> >between Java UI elements and the ActiveX controls.
>
> >To fix these focus related problems am writing some bridging code that
> >works with Java's focus manager to make it aware of the ActiveX
> >controls hosted on it's canvas. For the implementation to work I need
> >to know when the ActiveX control gained focus (WM_SETFOCUS) and when
> >it receives the Tab and Shift-Tab key events (WM_KEYDOWN).
>
> >So when the application is being realized I create the control and
> >then subclass it by supplying my own window procedure. For events that
> >don't interest me I forward them to the OriginalWndProc.
>
> >/* Subclassing code */
>
> >  // Get the Hwnd of the control from the Control host.
> >HWND controlWindow = GetWindow(atlAxWin, GW_CHILD);
> >  // Subclass the Window
> >WNDPROC controlWndProc = (WNDPROC)SetWindowLong(controlWindow,
> >GWL_WNDPROC, (LONG)SubclassProc);
>
> ****
> LONG is incorrect here.  It should be something like
>         WNDPROC controlWndProc = (WNDPROC)::SetWindowLongPtr(controlWindow,
>                         GWLP_WNDPROC,
>                         (LONG_PTR)SubclassProc);
> ****
>
> >  // Remember the original WndProc
> >BOOL res = SetProp(controlWindow,
> >_T("OcxFocusMgr_ControlOrigWndProc"), (HANDLE)controlWndProc);
>
> >/* My WndProc */
>
> >LRESULT CALLBACK SubclassProc(HWND hwnd, UINT message, WPARAM wparam,
> >LPARAM lparam)
> >{
> >  HANDLE origWndProc = GetProp(hwnd,
> >L"OcxFocusMgr_ControlOrigWndProc");
>
> >  switch(message)
> >  {
> >  case WM_SETFOCUS:
> >    {
> >      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
> >message, wparam, lparam);
> >            // Do something.
> >      return result;
> >    }
> >    break;
> >  case WM_KEYDOWN:
> >    if(wparam == VK_TAB)
> >    {
> >      LRESULT result = CallWindowProc((WNDPROC)origWndProc, hwnd,
> >message, wparam, lparam);
>
> >      if(GetKeyState(VK_SHIFT) < 0) // Shift-Tab
> >        // Do something
> >      else
> >        // Do something else
> >      return result;
> >    }
> >    break;
> >  }
> >  return CallWindowProc((WNDPROC)origWndProc, hwnd, message, wparam,
> >lparam);
>
> ****
> This looks like perfectly fine code.
> ****>}
>
> >This works fine until the time that the control tries to internally
> >load a particular file at which time it again subclasses this very
> >window that I originally subclassed. The sad part is I can't know when
> >it does that - it could be a result of an explicit UI operation or a
> >side-effect of something else. As a result I stop receiving the events
> >that am interested in which causes my focus mgt solution to stop
> >working.
>
> ****
> Who subclasses it?  For what reason?  Have you looked at the GWLP_WNDPROC value?  This may
> be indicative of who is subclassing it, for example.
>
> Note that whomever is subclassing it has failed to properly call the superclass (which is
> you)
>
> But there is no way to find out who is subclassing it.  It could be that Java is
> gratuitously re-subclassing it to its own code, but if properly done, this should not pose
> a problem.  Your code looks correct.
> ****
>
> >I hope I was able to clearly explain what am trying to get at. Based
> >on this I would appreciate any suggestions you may have.
>
> >Ranjit
> >P.S - I will research PreSubClassWindow in the meanwhile.
>
> ****
> This won't help what you are trying to do.  Your approach appears to be correct.  But
> someone else is doing you in.
> ****
>
>
>
> >On Apr 8, 10:23 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
> >> This is a very vague question.  For example, you can't "subclass" the window of another
> >> application; you can only subclass windows in your *own* application.  There is a
> >> PreSubclassWindow event that is called for your subclass before the subclassing actually
> >> occurs.
>
> >> But there are two kinds of subclassing: the MFC style of subclassing and the classic
> >> "Windows API" subclassing.  There is NO possibility of "notification" of the second kind
> >> of subclassing.
>
> >> When you subclass a window at the API level, it is your responsibility to maintain the
> >> original function pointer and CallWindowProc on that function if you don't process the
> >> message.  If you are using MFC subclassing, you just call the superclass method.
>
> >> You can use hooks to intercept messages going to a window in another application, but that
> >> is not consistent with the description you have given below.
>
> >> You will need to illustrate this with some code.
> >>                                         joe
>
> >> On Tue, 8 Apr 2008 09:43:28 -0700 (PDT), Ranjit <ranjiti...@gmail.com> wrote:
> >> >Is there a way for an application to be notified when one of it's
> >> >windows is being subclassed?
>
> >> >The scenario am dealing with is that I subclass a window to take a
> >> >crack at a few messages. But the implementation of one of the messages
> >> >that am not interested in and hence destined for the OriginalWndProc
> >> >is seeming to subclass the Window once again. I am kinda lost at this
> >> >point, because neither am I getting those select messages anymore nor
> >> >am I being notified that the Window was further subclassed after I
> >> >did.
>
> >> >Any suggestions?
> >> >Ranjit
>
> >> Joseph M. Newcomer [MVP]
> >> email: newco...@flounder.com
> >> Web:http://www.flounder.com
> >> MVP Tips:http://www.flounder.com/mvp_tips.htm
>
> Joseph M. Newcomer [MVP]
> email: newco...@flounder.com
> Web:http://www.flounder.com
> MVP Tips:http://www.flounder.com/mvp_tips.htm

0
4/8/2008 7:21:46 PM
"Ranjit" <ranjitiyer@gmail.com> wrote in message 
news:879306cb-f1ca-4b00-a489-5a51e09f5c8f@m44g2000hsc.googlegroups.com...
> Thanks Joseph and Ajay,
>
> I did finally realize that I might be trying to solve a problem that
> isn't cause by me after all. Every subclasser must remember the
> previous subclasser and pass the messages down (or up?). I did confirm
> that the subclasser (after me) is some code in the ActiveX control and
> not in Java.
>
> Now, it could be the case that the ActiveX control is holding on to
> the original WndProc address very early on even before I get a chance
> to subclass it and is then using that old value later on when it
> subclasses again. So the control isn't accounting for the fact that
> there could be multiple subclassers other than itself. My code is
> agnostic of it's position in the order of subclassers; it just needs
> to receive the msgs.
>
> I have been treating the control as a third-party component for the
> purposes of this discussion but the good part is that the code is
> available; it's just owned by a different team within the company. So
> I'll look through the code and see what's going on therein.
>
> Thanks for all your help. I'll summarize the issue if I find a
> solution or ask more questions if I need further advise.
>
> Ranjit
>

You could try to re-subclass the window due to a timer or other event.  That 
might work well enough.  If not, I recommend using a API hooking library 
such as MadCodeHook or Detours which you can hook SetWindowLong() to see who 
is subclassing the window.

-- David


0
dc2983 (3206)
4/11/2008 7:06:49 AM
Reply:

Similar Artilces:

Notifications
I just started using Windows Live Mail. I am using Windows 7 and would like to know how to get an icon to come up when I have mail (even if I am not in live mail). My other question is when I am at a website and you click on an email, it will not allow me to. 1) Tools (ALT+T), Options, General is where you tell WLM to check for messages every xx minutes. You can also tell it to play a sound when new mail is downloaded. WLM does have to be open for it to check mail. But it can be minimized. 2) If you mean clicking a mailto or contact us link doesn't open a message co...

URL for case or opportunity in notification email
Greetings all, Again I find myself at a loss for a customization I'd like to do. I've looked through the newsgroups and on the sandbox to no avail. I'd like to be able to send an email that goes something like: You've just been assigned a case! Please click here to open the case and have the word 'here' be a link to the actual case (or opportunity) that would open up in the web interface but I cannot find a way to include the 'entity URL' (if there is such a thing). Can anyone reccommend a straightforward to accomplish this? Many thanks in advance. -...

Email Notification from Resource Scheduling Mailbox
I am using Outlook 2k/2k2 on my clients backed with Exchange 5.5 Std Edition. I am using resource scheduling to easily schedule rooms and equipments. My question is this, currently, using this system, we are always looking or checking the user's folder (Calendar) to check if there are any reservation. Is there a way that there will be a notification to a particular email so that we will know if there are user who would like to reserve a particular resources(e.i. camera, projector, etc). Did you set up a mailbox for each resource or how are you using Resource Scheduling? --� Milly Sta...

Read Notifications are 6days earlier than delivey notification
Dear Colleagues, What is the explanation for a read reciept of a message sent to many users apperas in the tracking tape ealier 6 days than the delivery reciept? the same Time zones on all the PCs all of them are on the same exchange and in the same active directory Site> Example: A message i sent 4 days ago and trying to check its tracking status from the tracking tape of the sent message shows: Tracking: Recipient Delivery Read Sameh Saleh Delivered: 07/03/2006 12:47 PM Read: 07/03/2006 1:39 PM Yehia Amin Delivered: 07/03/2006 12:45 PM Mohamed Daif Delivered: 07/03/2006 12:45 PM ...

Word 2007 in Windows 7 not responding...
I've tried it all and nothing seems to work. Every time I click on ANY pop-up window in Word, whether to save as, for fonts or simply for paragraph styles, Microsoft Word goes into "not responding" mode. This issue does not show up in any other Microsoft Office program... Help? The first thing I would try is to start Word with the /a switch and see if it work normally. To start with the /a switch, click Windows' start button, type winword /a, and press Enter. If it works okay that way, then close Word and reopen normally and see if the problem is resolved. ...

Fail to attach DB in windows 7
i wrote a program with C# to attach database in windows 7, but i get the error message: "the log cannot be rebuilt because the database was not cleanly shut down" following is the SQL statement sp_attach_single_file_db @dbname = 'Test',@physname = 'c:\temp\test.mdf' Hi I think the best solution would to restore the database from the last good backup See some workaround (worked for me on SQL 7/2000) 1. From a query window, set the status so that you can update the system tables by running the following query: use Master go sp_configure "allo...

Windows Server 2003 Logo?
Is it still possible to submit for Windows Server 2003 Logo? If not is there WS2K3 signability available under Windows Server 2008 Logo? Thanks, Steve WLK 1.5 is the latest logo kit available. It does allow for testing and receiving a logo for specific Windows Server 2003 devices (see http://www.microsoft.com/whdc/winlogo/categories.mspx). John Garcia [MSFT] "S. Heck" wrote in message news:40F84979-5F92-4E04-8A8B-8A482D6A0EAA@microsoft.com... Is it still possible to submit for Windows Server 2003 Logo? If not is there WS2K3 signability available under ...

View recieving notification of document being saved
I have a standard document/view application. Is there a way to have the view notified just before the document gets saved? Thanks! - Pete You can use UpdateAllViews() or send a message inside the virtual function OnSaveDocument() Normand Then use UpdateAllViews() or get the "AirPete" <x@x.x> a �crit dans le message de news: ZoRZb.3036$yZ1.1944@newsread2.news.pas.earthlink.net... > I have a standard document/view application. > Is there a way to have the view notified just before the document gets > saved? > > Thanks! > - Pete > > Thanks! - Pete...

Admin Password on Windows 2003
Hi I forgot the password, for my server ( windows 2003). Is there any way I can bypass the loging? Thanks -- Raghu Ollakal System Administrator "Ollakal" <ollakal@hotmail.com> wrote in message news:2241FAD8-7CED-4982-9E4D-C8148050C5A5@microsoft.com... > > Hi > > I forgot the password, for my server ( windows 2003). Is there any way I > can > bypass the loging? > > Thanks > > -- > Raghu Ollakal > System Administrator Google is your friend. Type the words forgot windows password into a Google search b...

Notification
Hi We would like to set up CRM so that a notification is sent to a Manager if no one has created an activity in 24 hours. We are unsure if this is possible and we have attempted to do this through Workflow however we are unsure of the event that will trigger a workflow rule like this. Is this possible? Can this possibly be achieved through using Client Side Code? Any ideas? Many Thanks Mark Hi Mark, May be you need to write a custom SQL report and use the Microsoft CRM 3.0 Scheduler to run the reports daily. You can download the Scheduler from Microsoft. http://www.microsoft.com/down...

Override 'X' on Window
What do I need to override or which virtual function do I need to implement to trap when a user presses the 'X' on a dialog window. Instead of it closing the window I need to trap it and simply hide the window. Thanks. -- Michael Tissington http://www.tabtag.com http://www.oaklodge.com Michael, You will want to provide a handler for the WM_SYSTEMCOMMAND message, then test for the SC_CLOSE notification. Here is a simple hack that does something: /* ************************************** */ void CMainFrame::OnSysCommand(UINT nID, LPARAM lParam){ if(nID == SC_CLOSE){ ShowWi...

Entourage Changing Windows
I usually operate Entourage with 4 windows open, the Progress window, a main window set to Mail, a main window set to Calendar and a main windows set to Address Book. Since uprgrading to 11.2.0, when I open Entourage, it opens with Progress and the 3 main windows but it doubles the Address book instead of one for Calendar, or it doubles Calendar instead of one for Address Book. What's going on? ...

Windows 7 backup & SBS2008 Prem.
Hi, I have an SBS 2008 network, with Windows 7 clients. I setup a share on my server for the clients to use to do backups. I also have the user's profile folders redirected to the server as well, which covers Documents and Desktop (the default I guess when you tell sbs to redirect). Everything seems to work fine as far as the backups go, but the Windows 7 Action Center is complaining that I need to check my backup status. When I do, it mearly tells me that it skipped Documents, Desktop, Video etc. because they are on the server. I'm fine with those being skipped as th...

Update Windows XP KB973688
Can anyone tell me what the problem is with this update? I have tried to install it 4 times and it won't install. Went to Microsoft's website and found that it had 0 bytes to install! What gives? John wrote: > Can anyone tell me what the problem is with this update? I have > tried to install it 4 times and it won't install. Went to > Microsoft's website and found that it had 0 bytes to install! What > gives? 0 Bytes is not how much you have to install - it is how much you have to download (0 bytes because you have already downloaded it.) Did you ma...

Add a refresh button to the Account Summary window
At present if you are working with the Account Summary window open in GL and make a posting to an account that has already been viewed and then try to view the data, the Final totals are updated and correct but the Period totals are not. I suggest a refresh button is added to the window to recalculate the Period figures when required so that all figures displayed by the window are correct. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the mess...

Where is the Windows 7 newsgroup?
Searching through the list of available newsgroups, I failed to find one name windows7. As I suppose that there are such newsgroups, I simply need to know how to find them. Oh! I just realized that I am writing this on my WinXP computer, and Win7 does not allow Outlook Express, which is how I get to this newsgroup. What should I be informed on Win7 newsgroups? <rsl18@sbcglobal.net> wrote in message news:eoHHGgTlKHA.1540@TK2MSFTNGP06.phx.gbl... > Searching through the list of available newsgroups, I failed to find one > name windows7. As I suppose that...

Notification addin?
Is there an add-in that will allow a pop-up notification for an IMAP account? Outlook 2007 Not that I know of. There are utilities that will check the acct and let know if there is new mail. They are not connected at all to outlook. http://www.google.com/search?num=100&q=email+notification+software -- Diane Poremsky [MVP - Outlook] Author, Teach Yourself Outlook 2003 in 24 Hours Need Help with Common Tasks? http://www.outlook-tips.net/beginner/ Outlook 2007: http://www.slipstick.com/outlook/ol2007/ Outlook Tips by email: dailytips-subscribe-request@lists.outlooktips.net Outlook...

Creating a frame window for MDI in a DLL
Have a question on creating an MDI 'application' from a DLL. I would like to launch an MDI 'psuedo' application from a DLL. That is, when this method is called from the main application, it would launch what would look like another application, that is an MDI frame with doc/view, etc.. I have seen something like this in .NET forms, however, I am using unmanged C++ code. I have some experimental code work done now and it appears that the call to LoadFrame fails (yes, I have included all of the necessary IDR_MAINFRAME resources). Is this possible? Has anyone done this? An...

Windows has recovered from an unexpected shutdown
Hi I was wondering if anyone could help me with the following problem: Everytime I turn my laptop on the following message comes up straight away: ______________________________________________ Windows has recovered from an unexpected shutdown. Problem signature: Problem event name: BlueScreen OS Version: 6.0.6001.2.1.0.768.3 Locale ID: 6153 Additional information about the problem: BCCode: fe BCP1: 00000008 BCP2: 00000006 BCP3: 00000001 BCP4: 8c973000 Os version: 6_0_6001 Service Pack 1_0 Product: 768_1 Files that help decribe the pr...

Envelope notification
Hello, I accidentaly clicked on the option "Hide Envelope" in the taskbar, when I right clicked on the envelope icon that indicates I have a new unread e-mail. Is there a way to make this icon reappear whenever I get new e-mails? Thanks, Katerina Katerina K. <scorpio_gemini@hotmail.com> wrote: > I accidentaly clicked on the option "Hide Envelope" in the taskbar, > when I right clicked on the envelope icon that indicates I have a new > unread e-mail. Is there a way to make this icon reappear whenever I > get new e-mails? Right-click the Taskbar an...

A window with file and help meny items
Hello Experts! I have a document about window system and here they show a window with two menu items at the top of the screen to choose from. The Items are File and Help. Now to my question I can't understand where in the code, statements are used to be able to show the two menu items File and Help? Here is the program: The program is not complete because the callback procedure WndProc are not include in the code but that doesn't affect the question. #include <windows.h> #include "resource.h" int WINAPI WinMain(HINSTANCE hInstance, hPrevInstance, LPSTR lpCmdLin...

Outlook on XP doesn't recover all emails in pst file from Windows 2000
I have pst files which have emails from around 2001 to the present. In Sept 2005 I swicthed over to a machine running Windows 2000. Now that machine died so I swicthed to a notebook running XP Home. When I copied the pst files to the Local Settings/App data/Microsoft/Outlook folder, everything is there from 2001 through Sept 2005, but there is nothing showing up from Sept 2005 to the present. I am sure hundreds of emails in the period Sept 2005 to Aug 2006 are in those pst files. The one called mailbox.pst has a modified date of Aug 2006. And yet none of the past year's emails show up in O...

Windows XP SP3 Remote Desktop
I have multiple employee's that remote desktop into a computer that is kept in my server room. The problem I am having is that they never know when someone else remoted into the machine so they decide to connect and end up disconnecting the other person. Is there a way to stop that? If an employee is already remoted in that if another individual connects it will not allow them to connect until the other person has disconnected from the computer. Not sure what your question has to do with Media Center, but there are hacks around to bypass this limit. For example: http://re...

Customize Notification
I was needing help with icons that show up on the taskbar in the lower right hand corner. I have several from various programs and would like to delete them from the taskbar but the only option seems to be "hide them when inactive" or "always hide". These are programs that I use from time to time, but I don't want them on my taskbar. I have tried the "kelly" website to remove past items and it does remove several, but when I reboot all of the icons are back on there again. Thanks for your help! -- Gina How to delete icons from the Windows System Tray h...

Dynamic Windows-dialog
Hello again, what I am trying to do is to have an application running that is created based on MFC. I now want to load a DLL that comes along with a separate GUI window. In earlier versions of MFC (Visual Studio 6) I had problems to encapsulate both parts of the application concerning the occurance of user interaction callbacks. That is whenever I pushed a button in the GUI coming from the DLL the callback in the main application was called. This had to do with the WinProc-function that somehow was the gateway for ALL messages being passed. In Visual Studio.NET, is there now a way to cre...