Search:

Type: Posts; User: JAAFAR

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    31
    Views
    3,018

    Re: Teaching people to crawl

    I just saw this chat and wasn't going to post here but, then I thought it would only be fair to ackowledge and validate what has been said in this discussion.

    That said, sometimes it is difficult...
  2. Re: Detecting whether a font (by font name) is TrueType or not

    Guys, what can I say :- You have all been amazing at explaining this stuff as well as very patient.... I have learnt a lot from this thread thanks to you all. So, I thank you for that.

    I have been...
  3. Re: Detecting whether a font (by font name) is TrueType or not

    Here is a UNICODE variant of the code :

    Option Explicit

    Private Type LOGFONTW
    lfHeight As Long
    lfWidth As Long
    lfEscapement As Long
    lfOrientation As Long
    lfWeight As...
  4. Re: Detecting whether a font (by font name) is TrueType or not

    Makes sense.

    That said, if he had used GetObjectW and CreateFontIndirectW from the start, he could have made it easier and wouldn't have needed any string conversions at all. Does that make sense...
  5. Re: Detecting whether a font (by font name) is TrueType or not

    Forgive my ignorance but, if he is calling the ANSI version of GeObject api, why is he subsequently converting it from unicode to ANSI ?

    Is GetobjectA not returning an ANSI string in lfFaceName...
  6. Re: Detecting whether a font (by font name) is TrueType or not

    I am confused ... I thought all font names were unicode as they are just vb BSTR strings .

    Does the LOGFONT member (lfFaceName) contain unicode or ANSI string ?

    Would skipping this StrConv...
  7. Re: Detecting whether a font (by font name) is TrueType or not

    Thanks.

    - What happens if :

    CopyMemory lf.lfFaceName(0&), bb(0), LenB(sFontName)


    Also,
    Is this :
  8. Re: Detecting whether a font (by font name) is TrueType or not

    Can you elaborate on this section?

    I have never used RtlFillMemory before.


    ' And change the name in that structure.
    FillMemory lf.lfFaceName(0&), 32&
    Dim bb() As Byte
    bb =...
  9. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    I seem to have managed to make the scrolling turn around the central axis by offsetting the Window and ViewPort origins.. Not the best good looking output text but close as I can't properly control...
  10. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    I was looking to do this without the need for external libraries (RC6.dll) but thanks for the input.
  11. Replies
    40
    Views
    7,454

    Re: [ABANDONED] MsgBox font properties

    Yes the NONCLIENT is misleading but it works for all controls with text.

    It is system wide so you must store the initial NONMETRICS of your system so you can restore it when done. It is very...
  12. Replies
    40
    Views
    7,454

    Re: [ABANDONED] MsgBox font properties

    Have you considered changing the NONCLIENTMETRICS.lfMessageFont as I suggested in post#7 ?

    If you do that, the system will take care of resizing the MsgBox and its controls to accomodate the...
  13. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    @Passel

    Thanks for the code but I will need to see if I can somehow adapt the idea to vba as there is no PictureBox\PaintPicture in vba.
  14. Replies
    40
    Views
    7,454

    Re: MsgBox font properties

    Yes, that is probably the hardest.

    One workaround is to temporarly change the NONCLIENTMETRICS.lfMessageFont using SystemParametersInfo(SPI_SETNONCLIENTMETRICS...

    Obviously, this has a system...
  15. Replies
    40
    Views
    7,454

    Re: MsgBox font properties

    I used WH_CALLWNDPROC hook and watch for the creation of the MsgBox in the WM_CREATE message that is stored in the CWPSTRUCT structure pointed to by the lParam.

    Once you have the MsgBox hwnd (also...
  16. Replies
    40
    Views
    7,454

    Re: MsgBox font properties

    Have you tried subclassing the MsgBox and intercepting the WM_CTLCOLORDLG, WM_CTLCOLORSTATIC, WM_CTLCOLORBTN messages ? You could select the font you want (with its attributes) onto the MsgBox DC...
  17. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    I am still unable to make a text rotate around its center in a 3D fashion... The closest I have come to is what I have in post#8.

    I have searched the web but no luck.

    Does anyone have a working...
  18. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    You are right. the 3D rotation illusion that we see is actually squeezing the text till the text width reaches 0 then inflating its mirror image and so on.
  19. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    Thanks... I will take a look.
  20. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    Does that do 3D ?

    Thanks
  21. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    As you can see from the below clip, the rotation axis is at the start of the drawn text (H letter) ... I want the axis to be at the the center of the text (somewhere before the 'W' letter) so that...
  22. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    I had already seen that code but it doesn't make the drawn text to rotate around itself from the center.

    Thanks.
  23. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    Setting eDx and eDy only affects the start position of the output string NOT the rotation axis.

    Thanks.
  24. Re: SetWorldTransform - TextOut apis ... 3D text Rotation ?

    I have tried this (and other combinations) before calling TextOut but, it still doesn't shift the rotation axis to the center of the rotating text.

    Dim p As POINTAPI

    Call GetViewportOrgEx(hDc,...
  25. SetWorldTransform - TextOut apis ... 3D text Rotation ?

    Hi,

    I use SetWorldTransform to rotate a text string onto a DC but when TextingOut the string, the rotation axis is always at the start of the string.

    I would like to have the rotation axis set...
  26. Replies
    5
    Views
    1,192

    Re: CopyMemory to copy function address

    Thanks.. That is what I always do.

    With (CopyMemory Dest, ByVal Pnt, 4), what does the value in Dest represent, memory wise ?
  27. Replies
    5
    Views
    1,192

    CopyMemory to copy function address

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
    Destination As Any, Source As Any, ByVal Length As Long)


    Sub Test()

    Dim Dest As Long
    Dim Pnt As Long

    ...
  28. Replies
    13
    Views
    3,967

    Re: Using lstrlen in VB6

    Cool Zahl !

    Thank you.
  29. Replies
    13
    Views
    3,967

    Re: Using lstrlen in VB6

    Thanks.

    I was just trying to familiarize myself with the WideCharToMultiByte api which I have never used before.

    And yes, I am using this in vba and this is what I normally use to get a string...
  30. Replies
    13
    Views
    3,967

    Re: Using lstrlen in VB6

    Hi Elroy,

    In the above MakeStringFromUnicodezPtr function. Why do we have to double the size of the s buffer ?

    Wouldn't using the following be large enough to incorporate the lpszW string ?
    ...
  31. Replies
    3
    Views
    998

    Re: Resource Hacker on "Shell32.dll"

    Does anybody know the dialog template ID for the MessageBox API that is exported by the User32.dll ?

    Thanks.
  32. Replies
    10
    Views
    1,648

    Re: WS_CHILD follow scrollable parent window ?

    That sounds like a good idea to avoid lagging. Never done anything like that before but I will try to give it a shot and see.

    Thanks
  33. Replies
    3
    Views
    998

    Re: Resource Hacker on "Shell32.dll"

    Thanks.

    I wonder if there is a somewhere I can find a list of dialog templates exported by core windows dlls such as user32,Shell32 etc .
  34. Replies
    10
    Views
    1,648

    Re: WS_CHILD follow scrollable parent window ?

    Thanks for the info. I will take a look at Krool's work.
  35. Replies
    10
    Views
    1,648

    Re: WS_CHILD follow scrollable parent window ?

    As I said, I am just wanting this for the sake of learning and to see if\how this can be done.

    Thanks anyway for you suggestion.
  36. Replies
    3
    Views
    998

    Resource Hacker on "Shell32.dll"

    Hi all

    183104

    I want to explore the Dialogs contained in the Shell32 library for which I am using Resource Hacker.

    As you can all see from the above image, RH doesn't display any of the...
  37. Replies
    10
    Views
    1,648

    Re: WS_CHILD follow scrollable parent window ?

    Thanks.

    Using native vb form controls will defeat the purpose of what I am trying to do which is to make this work with a child win32 control created from scratch in order to learn if & how this...
  38. Replies
    10
    Views
    1,648

    WS_CHILD follow scrollable parent window ?

    Hi all,

    i am creating a small BUTTON window using CreateWindowEx api and setting its parent to the form window.

    The newly created child button is added successfully to the form's client area as...
  39. Replies
    11
    Views
    3,457

    Re: Embossed\Disabled Bitmap

    I saw those threads already.

    When I call the DrawState api along with the DST_BITMAP Or DSS_DISABLED flags, I only get a plain gray image not a disabled copy of the original image. I don't get an...
  40. Replies
    11
    Views
    3,457

    Re: Embossed\Disabled Bitmap

    I am statisfied with LeandroA's GDI+ solution but I am still wondering why the User32 DrawTateA api doesn't seem to work as intended.

    Has anybody ever had any success with this DrawStateA api or...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width