flat assembler
Message board for the users of flat assembler.
Index
> Windows > Hyperlink Static (sub-classing example) |
Author |
|
bitRAKE 18 Dec 2007, 06:56
Simple example.
To WM_CREATE/WM_INITDIALOG: Code: stdcall ConvertStaticToHyperlink,[hWndParent],ID_LINK Code: invoke GetDlgItemText,[hWndParent],ID_LINK,string_buffer,sizeof.string_buffer invoke ShellExecute,0,"Open",string_buffer,0,0,SW_SHOWNORMAL Of course, the static text doesn't need to match the URL - I just like to inform the user where they are going.
|
|||||||||||
18 Dec 2007, 06:56 |
|
bitRAKE 28 May 2009, 08:24
I've done a conversion of the above example for Win64 - using the new Subclassing API, and added the abliity to change the link color (by updating the control property). Please let me know of errors.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup Last edited by bitRAKE on 29 May 2009, 04:15; edited 1 time in total |
|||||||||||
28 May 2009, 08:24 |
|
pete 28 May 2009, 13:02
Wow, i didn't know that such an effort is needed for a hyperlink. Thanks for the example.
|
|||
28 May 2009, 13:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.