Search:

Type: Posts; User: DaveDavis

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: How to RaiseEvent Enter and Leave in VB6 ActiveX control

    OK, I figure out.
    I have to subclass WM_KILLFOCUS in my children control as well.
  2. [RESOLVED] How to RaiseEvent Enter and Leave in VB6 ActiveX control

    In C#, WinForms has Control.Enter and Control.Leave event we can used. But how to RaiseEvent Enter and Leave in ActiveX control? I want to implement both in my VB6 ActiveX control and my ATL version...
  3. Replies
    0
    Views
    1,794

    Control.Enter and Control.Leave in ATL c++

    in c#, there're Control.Enter and Control.Leave.
    I want to Fire Fire_Enter and Fire_Leave events for my ATL control and do something (Show/Hide children).
  4. Replies
    5
    Views
    4,775

    Re: Data View Method '~' of object '~' failed

    I just experienced this annoying message during VB6.exe launching.
    I unregister DATAVIEW.DLL to turn vb6.exe silent.
  5. Replies
    4
    Views
    4,804

    Re: error C3867 in my call

    OK, I close this thread and will more a proper thread.
    Sorry for inconvenience.
  6. Replies
    4
    Views
    4,804

    Re: error C3867 in my call

    agreed through it is ATL c++.
  7. Replies
    4
    Views
    4,804

    [RESOLVED] error C3867 in my call

    Usage:



    error C3867: 'ucControl::NotificationParentWindowDestroyed_HandleDestroyedCallback': function call missing argument list; use...
  8. Re: How to add dwmapi.h in VS2005?

    I tried to add those .h related to dwmapi.h, but I got lots of errors because they are nested.

    OK, I close this thread because Visual Studio 2005 doesn't directly include support for the DWM...
  9. Replies
    69
    Views
    19,266

    Re: [VB6/VBA] QR Code generator library

    handphone also got Language setting, you try to change to prefer one.
  10. Re: How to add dwmapi.h in VS2005?

    I follow ChatGPT, but I still got error 'fatal error C1083: Cannot open include file: 'dwmapi.h': No such file or directory'
  11. Re: How to add dwmapi.h in VS2005?

    Does VS2005 support the latest SDK?

    I search it, it located at:
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\dwmapi.h

    I will try to include in my VS2005 project.
  12. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    my special case is not draw an arrow, it is arrow shape window for an insert mark which is floating on screen.

    I think it is more about math scale and transform for polygon points(6). Olaf do a...
  13. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    very nice!
    189794
  14. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    I formed the shape by SetWindowRgn. Then I use GDI+ Fill the color, the result is 'almost' the same. So, the problem may come from my algorithm。



    Private Sub CreateScaledPolygonArrow()

    ...
  15. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    I need draw a insert mark on top or outside of my control. The insert mark is an arrow which formed by CreatePolygonRgn then created a special shape window by SetWindowRgn. Please refer my post #2.
    ...
  16. Re: How to add dwmapi.h in VS2005?

    do you mean Visual Studio 2005 SDK?
  17. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    Not sure what is your mean.

    I didn't directly draw the polygon arrow, please make this special window Picture1 anti-aliasing.



    CreatePolygonArrow
    Picture1.BackColor = vbRed
    ...
  18. [RESOLVED] How to add dwmapi.h in VS2005?

    I want to draw modern shadow for a Dropdown Topmost window, but I don't know how to add this header file in VS2005 for my ATL project. Where is this Header file and how to add it?



    #include...
  19. Replies
    0
    Views
    280

    VS2005, what is special?

    A senior told me if we develop an ActiveX, we should use ATL in VS2005. After completion of coding, we can use VS2022 for compiling. But I forgot the reason in details. Is it related with compatible...
  20. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    Not only anti-aliasing, I create a special shaped window by call SetWindowRgn API.
  21. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    I don't know how to use GDI+ for my case of SetWindowRgn call.



    CreatePolygonArrow
    Picture1.BackColor = vbRed
    SetWindowRgn Picture1.hwnd, hRgn, True
  22. Replies
    17
    Views
    774

    Re: Stretch a Polygon region

    I add sample code for your kind test.



    Option Explicit

    Private Type POINTAPI
    x As Long
    y As Long
    End Type
  23. Replies
    17
    Views
    774

    Stretch a Polygon region

    how to stretch the below Arrow region 'nicely' by a factor g_DpiScaleFactor (such as 1.75)?

    I tried but it is not nice without all directions are equvalently increased.

    Refer to attached...
  24. Replies
    190
    Views
    33,959

    Re: NewTab: tab control for VB6

    thank you:thumb:
  25. Replies
    190
    Views
    33,959

    Re: NewTab: tab control for VB6

    btw, what is "TDI“ represent?
  26. Re: Getting the ball rolling. Which VB6 projects are you working on?

    Can you please give this screenshots?
  27. Re: Getting the ball rolling. Which VB6 projects are you working on?

    Morning, We can't see both screenshots.
  28. Re: The modern print dialog issue after Windows 11 22H2 update

    Thanks, We can read/write registry by temporarily set the value to 1, after app called "old style" Print Dialog, then restore original registry setting in our program.
  29. Re: The modern print dialog issue after Windows 11 22H2 update

    In .NET, when I set bit .UseEXDialog = false, it also turns out a traditional style or run the exe file set "Run as Administrator".
    Also in .NET, at least, in my application, the modern print dialog...
  30. Re: The modern print dialog issue after Windows 11 22H2 update

    Yes, I used .NET for testing.
    I just test VB6, I am using Krool's class CommonDialog.cls by calling ShowPrinterEx, the print dialog is new style, but test OK without such issue.
  31. The modern print dialog issue after Windows 11 22H2 update

    In Windows 11 22H2, Microsoft has replaced the legacy Print Dialog for all classic (win32) apps, e.g., Notepad, WordPad, Notepad++, etc., with a new dialog. Earlier, this dialog was available only...
  32. Re: VB6 Link-Label-Widget with colored KeyWord-rendering

    Thank you very much for this tips. I used RC6 in few VB6 projects to use one of functionalities of SortedDictionary, now I am on the way to convert my VB6 controls to ATL, after I finish the ATL...
  33. Re: Krool's VBFlexGrid text colors within a cell

    PSC has this kind of colorful code: HTMLLabel, but it is just a conceptual code, in the real work, it is more complex.
  34. Re: VB6 Link-Label-Widget with colored KeyWord-rendering

    it is really magic and powerful.
    When the form resize to minimum, "Monster" & ChrW(160) & "Girl" lost Red color. Is it normal?

    Can those dlls including RC6.dll etc. being used in C++ ATL? If so,...
  35. Replies
    1
    Views
    1,486

    Re: STDMETHODIMP get_Text

    I am not sure. ChatGPT gives different and confused answers.

    _bstr_t PropFileName = L"MyConfigures.xml";

    STDMETHODIMP CMyControl::get_FileName(BSTR* pVal)
    {
    *pVal = PropFileName.copy();...
  36. Re: I can't compile the 'ATL Grid control'

    OK, I just open the file using Notepad to read some codes. It is worth nothing to do compiling.
  37. Re: how to format double in custom format

    oh, it is very nice. My project is using c++ 14, no wonder I didn't see it. Thank you Sir.
  38. Replies
    8
    Views
    665

    Re: DrawText maximum characters

    Sorry, I am confused too. My seniors told me so without evidence.
  39. Replies
    1
    Views
    1,486

    STDMETHODIMP get_Text

    STDMETHODIMP CMSTCtl::get_Text(BSTR* pVal)
    {
    _bstr_t bText = m_EditCtl.GetText();
    *pVal = bText.GetBSTR();
    return S_OK;
    }

    STDMETHODIMP CMSTCtl::get_Text(BSTR* pVal)
    {
    _bstr_t...
  40. Re: how to format double in custom format

    Thank you Sir. Nice to get your input.
    In VB.NET, I use Strings.Format. In C#, I am using double.ToString(myformat) to do formatting. But I have no idea how to do same thing in vc++ ATL.
    I can't...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width