How to change the mouse cursor icon type when mouse moves out of client area ( propertysheet) WTL?

I got stuck with an issue in property sheet .I want to load different cursor when the mouse position is within the client area and load another when moves out of the client area.
In the porpetysheet I added four page. In the first page when I click next I am loading cursor of IDC_WAIT type and loading IDC_ARROW when the mouse moves out of the client area.
In the page class I triggered the event for WM_MOUSEMOVE as follow:
    MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
LRESULT OnMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
if(TRUE == m_bIsNextBtnClicked)
::SetCursor(LoadCursor(NULL, IDC_WAIT));
else
::SetCursor(LoadCursor(NULL, IDC_ARROW));
return TRUE;
This event is getting triggered and absolutely had no issue with this. Similarly I tried adding `MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseLeave)` this event making an assumption that this will get triggered if the mouse moves out of the client area,  but
this event did not get triggered at all.If this is not the mouse event to be triggered for mouseleave which event should I trigger?
LRESULT OnMouseLeave(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
::SetCursor(LoadCursor(NULL, IDC_ARROW));
return TRUE;
Now when I click Next button , **I was actually calling a function which is taking sometime to return** . Before to this function I am loading IDC_WAIT cursor i.e., 
 `::SetCursor(LoadCursor(NULL, IDC_WAIT));` . 
Now when move the mouse cursor on to the non-client area I want to load IDC_ARROW cursor i.e., 
    ::SetCursor(LoadCursor(NULL, IDC_ARROW)); 
When the moves on to the non-client area I am handling the mouse event in sheet derived class as follows,
MESSAGE_HANDLER(WM_NCMOUSEMOVE, OnNCMouseMove)
LRESULT OnNCMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
::SetCursor(LoadCursor(NULL, IDC_ARROW));
return 0;
This event is not getting triggered until unless the function in the Next button event is executed.
I want both of them to be done in parallel i.e, click Next button now hover mouse on the client area, Busy icon should come and when mouse moves out of the client area then IDC_ARROW icon should come.
LRESULT OnWizardNext()
::SetCursor(LoadCursor(NULL, IDC_WAIT));
m_bIsNextBtnIsClicked = TRUE;
BOOL bRet = MyFun();
m_bIsNextBtnIsClicked = FALSE;
//Until this function(MyFun()) is executed **WM_NCMOUSEMOVE**
//event is not getting triggered.But this event should get triggered and I
//should be able to see the change of cursor within and out of client area.
Can anyone kindly help me to solve this issue.
SivaV

Hello
sivavuyyuru,
For this issue, I am trying to involve someone to help look into, it might take some time and as soon as we get any result, we will tell you.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to change the default IDOC basic type from CREMAS05 to CREMAS04.

    Hi All,
    How to change the default IDOC basic type from CREMAS05 to CREMAS04 when sending Vendor Master Data.
    When I generate partner profile, the system will add the latest version of IDOC type which is CREMAS05 to the Outbound message. In my project, I'm asked to use CREMAS04.
    I want to use BD14 to send master data directly, but the program will generate IDOC using CREMAS05. Is there a way that I can change it to CREMAS04? And also for using Change Pointers, I want to use the report RBDMIDOC, but i have the same problem.
    Thanks
    Sai Krishna

    execute WE20 and edit the outbound parameters
    here is a pretty good example: http://documentation.softwareag.com/webmethods/sapr3_gateway/sap231/pages/sapdist.htm
    Edited by: Jürgen L. on Sep 7, 2011 9:49 PM

  • How to change the node's icon in a tree when the node collapse or expand?

    how to change the node's icon in a tree when the node collapse or expand?

    Hi,
    You may need to use custom skin for that.
    -Arun

  • How to change the default JAD Icon image in JStudio

    Dear friends,
    I have one dought,how to change the default icon JAD image in jstudio application.Its very important to me.And one find answer please tell .

    Dear friends,
    I developed one application in jstudio.And need to set an special icon for my application.While i download my application in to mobile. The icon should be displayed in the mobile.To show my application as unique from other applications.But i dont know how to set an icon for my application. If any one find answer please reply as soon as possible.
    Thank you

  • How to change The Standard JOptionPane Icon?

    in this simple code
    i want to change the Standard JOptionPane icon to a different icon
    how could it be?
    thank you
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import javax.sound.sampled.*;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.Icon;
    import java.awt.event.*;
      public class MyFrame extends JFrame 
    JLabel label=new JLabel("Hello");
      MyInner inner;
          MyFrame ()
            setupGUI();
        private void setupGUI()
           JFrame f =new JFrame();
        //   f.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
           f.setTitle("Window Event");
            f.setSize(550,350);
            f.setResizable(false);
            f.setLayout(new BorderLayout());
            f.add("Center",label);
            f.show(true);
             inner=new  MyInner();
             f.addWindowListener(inner);
                   class MyInner extends WindowAdapter
           public void windowClosing(WindowEvent ee)
                         Toolkit tool = Toolkit.getDefaultToolkit();
                  tool.beep();
                      JOptionPane.showMessageDialog(null, "Nice Work! " );
                      System.exit(0);
          public  static void main(String[]args)
             MyFrame frame=new MyFrame ();
    }

    For instance:
        class MyInner extends WindowAdapter
            public void windowClosing(WindowEvent ee)
                Toolkit tool = Toolkit.getDefaultToolkit();
                tool.beep();
                JOptionPane.showMessageDialog(null, "Nice Work! ");
                ImageIcon myImageIcon = new ImageIcon("myPic.jpg"); // needs proper path here
                JOptionPane.showMessageDialog(null, "Better Work!", "Dang, I'm smart!", JOptionPane.ERROR_MESSAGE, myImageIcon);
                System.exit(0);
        }

  • How to change the size of icons on the desktop?

    Please help to know how to change the size of the icons on the desktop.  How do I access the font family for the desktop if that's the way to do it?
    Thanks

    Click on the Finder/Desktop
    From the View menu > Show View options.
    This is as large as they go
    If your having trouble seeing when web browsing I have a alternative for that.
    Firefox + NoSquint + Theme Font & Size Changer

  • How to change the description of Transaction Type

    hi ,expert
       i want to change the description of Tansaction type.
        eg, change the description of BUS2200 :'RFx  '   to 'RFQ' . 
        please give me some advice. thanks in advance.
         regards
                claud

    Hi Claud,
    Go to SPROSRM ServerCross App Basic SettingsNumber rangesDefine transaction typesSelect BUS2200 and double click on transaction typesHere you will see BID (transaction type)--Just double click on this and in the screen that follows change the description.
    PS: The system will generate a transport request.
    Regards,
    Nikhil

  • How to change the style of icons used on the tool bars mainly the forward and backwards arrows

    Hi .
    There always used to be a way of changing the look of firefox the arrowws ect at the moment i have just outline type arrows for forwards and backwards i would far rather have the older Green arrows far easier to see and look far better how do i cange this now
    This is on Firefox 9.0.1 64 bit on Arch Linux current

    Ok well this has only recently happened that the arrows have gone to these horrible outline things i use themes and personas but this is a new effect so looks like ity is down to canning either themes or personas because those arrows are to put it politely disgusting

  • How to change the residual payment document type?

    Hi,
    When i make residual partial payment then the document type of the residual amt will become DZ/KZ. However this is wrong because all invoices must be DR or KR. How can i change this doc type for residual payments?

    hi,
    its quite simple i beleive .. all you need to do is let me take an example of a customer ...
    while a collecting a payment from a customer you recieve it from  the tcode  f-28
    so once you are on the screen you are asked for a date and doc type also
    this is were you can change the doc type
    regards
    sayeed

  • How to change the individual node Icon based on the user action?

    Hi all,
    I just want to change the icon of the selected node when user clicks the button.
    I've gone through some examples in the tutorials and someother websites,
    but it looks very big for this simple need.
    Please help me in a simple way.
    Thanks a lot.

    Anandababu_Babu wrote:
    node represents a node in a JTree.
    I don't have a code for this problem, i just have a idea to implement this on my application,
    for better user interaction.Read the API for JTree and follow the link to the Swing tutorial on How to Use Trees where you will find a section on Responding to Node Selection and a link to another section on Editors and Renderers. After trying out what you learn there, feel free to ask here if you have a more specific question than "I don't know how to do it"
    luck, db

  • How to change the java cup icon for all the JFrames?

    Hi,
    I would like to know if I can change the Java cup defult icon that appears in the upper left corner of the JFrames in one time, instead of setting the JFrame's icon in every created JFrame.
    Regards,
    Gabriel

    Then don't set the parent to null. If you don't want a parent, just set it to
    JOptionPane.showMessage(new IconFrame(), ...
    [\code]
    where IconFrame extends JFrame and sets the icon in it's constructor.  The optionpane will then use the icon from it's parent frame.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to change the color of icons

    Hello all...
    Is there a way to change color of an icon??? It seem to me that I was able to do this in a previous OS but I have lost the way to accomplish the task.

    Thanks for your reply Templeton; however, your method only changes the color of the label not the icon itself. I'm looking to change the color of the icon.

  • How to change the effect of drag and drop from MOVE to COPY in alv tree.

    Hi,
    I am using a tool in which now the behaviour on drag and drop is MOVE. I want to change it to COPY.
    But I do not know which parameter needs to be set and where.
    please help.
    Regards,
    Smita.

    Hi,
    Thanks for quick reply.
    The code goes on like this
    METHOD set_dd_behavior.
      DATA: l_copysrc(1) TYPE c,
            l_movesrc(1) TYPE c,
            l_droptarget(1) TYPE c.
    Set the Drag and Drop Flavors.
      CREATE OBJECT dd_behavior.
      READ TABLE reg_functions WITH KEY name_function = 'COPY'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_copysrc = 'X' .
      ENDIF.
      READ TABLE reg_functions WITH KEY name_function = 'CUT'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_movesrc = 'X' .
      ENDIF.
      READ TABLE reg_functions WITH KEY name_function = 'PASTE'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_droptarget = 'X' .
      ENDIF.
      CALL METHOD dd_behavior->add
      EXPORTING
      flavor = 'MOVE'
      dragsrc = l_movesrc
      droptarget = l_droptarget
      effect = cl_dragdrop=>move.
      CALL METHOD dd_behavior->add
      EXPORTING
      flavor = 'COPY'
      dragsrc = l_copysrc
      droptarget = l_droptarget
      effect = cl_dragdrop=>copy.
      CALL METHOD dd_behavior->get_handle
      IMPORTING handle = dd_behavior_handle.
    ENDMETHOD.
    Here what changes needs to be done.
    As I see once COPY is added and next time MOVE is added.
    I am able to check because I am not able to edit while debugging the value of effect.
    Please suggest.
    Warm regards,
    Smita.

  • How to change the tab of a jTabbedPane when action performed

    The scenario is like this : I have a jTabbedPane with 2 tabs. I want, when an action is performed in one tab (for example a button is clicked on tab1) to change the tab automatically (to make tab2 visible). How can i do this?
    Thank you in advance

    I've read JTabbedPane API before i post the message, but unfortunately i couldn't find a solution to my problem. I tried to use the methods grabFocus and requestFocus to change the focus of the application, but it didn't work.
    Thank you for replying Nether.

  • How to change the background of a JPanel when printing?

    I have a JPanel that has a background color of gray when displayed on the screen. I would like to change the background to white when printing but leave it gray on the screen. I am calling setBackground(), clearRect() and fillRect() but it still prints out with the gray background. Any thoughts on what method I could call to change this?
    public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException {
    if (pageIndex >= 1) {
    return Printable.NO_SUCH_PAGE;
    double pageHeight = pf.getImageableHeight();
    double pageWidth = pf.getImageableWidth();          
    Graphics2D g2 = (Graphics2D) g;
    g2.setBackground(Color.white);
    g2.clearRect((int)pageWidth/2, (int)pageHeight/2, (int)pageWidth, (int)pageHeight);
    g2.fillRect((int)pageWidth/2, (int)pageHeight/2, (int)pageWidth, (int)pageHeight);
    paint(g2);

    From reading the doc, it appears that you have to change the background color of the Component:
    setBackground
    public abstract void setBackground(Color color)
    Sets the background color for the Graphics2D context. The background color is used for clearing a region. When a Graphics2D is constructed for a Component, the background color is inherited from the Component. Setting the background color in the Graphics2D context only affects the subsequent clearRect calls and not the background color of the Component. To change the background of the Component, use appropriate methods of the Component.
    Parameters:
    color - the background color that isused in subsequent calls to clearRect
    See Also:
    getBackground(), Graphics.clearRect(int, int, int, int)
    V.V.

Maybe you are looking for

  • Headphone Jack Problem - Volume Increases and Decreases Randomly

    Hi, has anyone encountered this problem? Whenever I plug in earphones the volume increases or decreases without me even touching the phone. It also disconnects alot whenever the earphones are moved. I have already updated my phone to the latest softw

  • About alv download

    hi, all   I want download data to excel from alv in webdynpro application, but the date field is "########" in excel.   Can you help me?   Thank you very much!

  • Do I really have to erase everything and start again?

    Hello and thanks for taking the time to read this! I'll try to be as succinct as possible. My boyfriend's MacBook, which I also use for my own music library, died some time ago and had to be reset at the local Apple Store. All data was lost on the ha

  • Can't Import Catalog - Unknown Error

    Is this still a known bug without a solution? I have LR3 on a MacBook Pro Snow Leopard and on a PC Desktiop Win XP Pro SP3.  I exported a catalog from the laptop to an external hard drive and then attempted to import it to the desktop and kept gettin

  • Please help me with this chaotical Flash Builder 4.5 Code Assist

    Hello everybody. In the past few days, I have been analyzing a very strange behavior of my Flash Builder 4.5. I am trying to upgrade to it, from Flex Builder 3, but I am finding the process impossible due to 2 problems. This is the first one: I get n