Q&A

  • RichEdit에서 단어 더블클릭 효과 구현?
무슨말이냐면요...



제 질문위에서 마우스로 더블클릭을 하면 단어만



선택이 되죠...? 그렇죠?



RichEdit도 그렇습니다.



문제는 제가 그것을 F8키를 눌렀을 때 그 것을 표현하고



싶다는 겁니다....



어떻게 똑같이 구현하는 방법이 없을까요?????



T___T



급하걸랑요....



고수님들 부탁드립니다......

1  COMMENTS
  • Profile
    신인재 1999.06.02 00:09
    Richedit에 포커스를 주고

    mouse_event를 한번 써보세요..





    The mouse_event function synthesizes mouse motion and button clicks.



    VOID mouse_event(



    DWORD dwFlags, // flags specifying various motion/click variants

    DWORD dx, // horizontal mouse position or position change

    DWORD dy, // vertical mouse position or position change

    DWORD dwData, // amount of wheel movement

    DWORD dwExtraInfo // 32 bits of application-defined information

    );





    Parameters



    dwFlags



    A set of flag bits that specify various aspects of mouse motion and button clicking. The bits in this parameter can be any reasonable combination of the following values:



    Value Meaning

    MOUSEEVENTF_ABSOLUTE Specifies that the dx and dy parameters contain normalized absolute coordinates. If not set, those parameters contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section.

    MOUSEEVENTF_MOVE Specifies that movement occurred.

    MOUSEEVENTF_LEFTDOWN Specifies that the left button changed to down.

    MOUSEEVENTF_LEFTUP Specifies that the left button changed to up.

    MOUSEEVENTF_RIGHTDOWN Specifies that the right button changed to down.

    MOUSEEVENTF_RIGHTUP Specifies that the right button changed to up.

    MOUSEEVENTF_MIDDLEDOWN Specifies that the middle button changed to down.

    MOUSEEVENTF_MIDDLEUP Specifies that the middle button changed to up.

    MOUSEEVENTF_WHEEL Windows NT only: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is given in dwData





    The flag bits that specify mouse button status are set to indicate changes in status, not ongoing conditions. For example, if the left mouse button is pressed and held down, MOUSEEVENTF_LEFTDOWN is set when the left button is first pressed, but not for subsequent motions. Similarly, MOUSEEVENTF_LEFTUP is set only when the button is first released.



    dx



    Specifies the mouse's absolute position along the x-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual x-coordinate; relative data is given as the number of mickeys moved.



    dy



    Specifies the mouse's absolute position along the y-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual y-coordinate; relative data is given as the number of mickeys moved.



    dwData



    If dwFlags is MOUSEEVENTF_WHEEL, then dwData specifies the amount of wheel movement. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120.

    If dwFlags is not MOUSEEVENTF_WHEEL, then dwData should be zero.



    dwExtraInfo



    Specifies an additional 32-bit value associated with the mouse event. An application calls GetMessageExtraInfo to obtain this extra information.







    Return Values



    This function has no return value.



    남윤혁 께서 말씀하시기를...

    > 무슨말이냐면요...

    >

    > 제 질문위에서 마우스로 더블클릭을 하면 단어만

    >

    > 선택이 되죠...? 그렇죠?

    >

    > RichEdit도 그렇습니다.

    >

    > 문제는 제가 그것을 F8키를 눌렀을 때 그 것을 표현하고

    >

    > 싶다는 겁니다....

    >

    > 어떻게 똑같이 구현하는 방법이 없을까요?????

    >

    > T___T

    >

    > 급하걸랑요....

    >

    > 고수님들 부탁드립니다......