Search:
Type: Posts; User: JAAFAR
Search:
Search took 0.09 seconds.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
Thanks.
- What happens if :
CopyMemory lf.lfFaceName(0&), bb(0), LenB(sFontName)
Also,
Is this :
-
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 =...
-
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...
-
I was looking to do this without the need for external libraries (RC6.dll) but thanks for the input.
-
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...
-
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...
-
@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.
-
Yes, that is probably the hardest.
One workaround is to temporarly change the NONCLIENTMETRICS.lfMessageFont using SystemParametersInfo(SPI_SETNONCLIENTMETRICS...
Obviously, this has a system...
-
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...
-
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...
-
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...
-
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.
-
Thanks... I will take a look.
-
-
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...
-
I had already seen that code but it doesn't make the drawn text to rotate around itself from the center.
Thanks.
-
Setting eDx and eDy only affects the start position of the output string NOT the rotation axis.
Thanks.
-
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,...
-
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...
-
Thanks.. That is what I always do.
With (CopyMemory Dest, ByVal Pnt, 4), what does the value in Dest represent, memory wise ?
-
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
...
-
-
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...
-
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 ?
...
-
Does anybody know the dialog template ID for the MessageBox API that is exported by the User32.dll ?
Thanks.
-
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
-
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 .
-
Thanks for the info. I will take a look at Krool's work.
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|