Search found 232 matches

by kcvinu
Jan 03, 2022 11:11
Forum: Windows
Topic: Question about drawing stage in NMCUSTOMDRAW
Replies: 8
Views: 1772

Re: Question about drawing stage in NMCUSTOMDRAW

Judging by the documentation , jj2007 speaks correctly. I can be wrong ... it seems to me that in the case of the button, and drawing the background / text, you just need to draw in the CDDS_PREPAINT notification. In fact, you will draw on top of how the system draws a button. Without a difference,...
by kcvinu
Jan 03, 2022 11:05
Forum: Windows
Topic: Question about drawing stage in NMCUSTOMDRAW
Replies: 8
Views: 1772

Re: Question about drawing stage in NMCUSTOMDRAW

dodicat wrote:An easy way is to use a bitmap.
You can draw or write anything you want on the bitmap.
for fun:
Thanks for the reply. That's a good idea to experiment. Let me try.
by kcvinu
Jan 03, 2022 11:02
Forum: Windows
Topic: Question about drawing stage in NMCUSTOMDRAW
Replies: 8
Views: 1772

Re: Question about drawing stage in NMCUSTOMDRAW

jj2007 wrote:I haven't used it for a while, but looking at old code it seems that only CDDS_PREERASE and CDDS_PREPAINT are relevant.
Thanks for the answer. CDDS_PREPAINT worked perfectly.
by kcvinu
Dec 27, 2021 7:45
Forum: Windows
Topic: Question about drawing stage in NMCUSTOMDRAW
Replies: 8
Views: 1772

Re: Question about drawing stage in NMCUSTOMDRAW

@VANYA ,
If you use BS_OWNERDRAW style, you need to do the entire drawing. But in NM_CUSTOMDRAW, you only need to the required thing. Like, if you want to change the fore, just do only it. Don't worry about the rest of the things.
by kcvinu
Dec 26, 2021 15:58
Forum: Windows
Topic: Question about drawing stage in NMCUSTOMDRAW
Replies: 8
Views: 1772

Question about drawing stage in NMCUSTOMDRAW

Hi all, I am trying to draw a button's back color in my win32 application. I am using NMCUSTOMDRAW struct to identify the draw stage. Here is the possible stages. CDDS_PREPAINT CDDS_POSTPAINT CDDS_PREERASE CDDS_POSTERASE I have used CDDS_POSTERASE stage to draw the back color and returns CDRF_DODEFA...
by kcvinu
May 22, 2021 18:26
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361262

Re: FreeBasic IDE-poseidonFB(Update 2021.05.22)

@Kuan Hsu, Sure. :) Thanks for the effort. Edit :----------------------------- It's not working. What I did ; 1. Set compiler path. 2. Didn't change any options in custom compiler commands. 3. Opened my code file and click compile. - Error message - Compiler isn't existed......? Compiler Path Error!...
by kcvinu
May 22, 2021 11:17
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361262

Re: FreeBasic IDE-poseidonFB(Update 2021.05.22)

@Kuan Hsu, Thanks for the reply. When I set the custom command line option, ( -i ) I got an error message. "error 81: Invalid command-line option" I saw the images in your link.It contains an Apply button with a tick mark. I don't have any "Apply" button in my configuration windo...
by kcvinu
May 20, 2021 15:23
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361262

Re: FreeBasic IDE-poseidonFB(Update 2021.05.20)

@Kuan Hsu, Thanks a lot. I am sorry to bother you with feature requests. But if your time permits, I would like to add some more feature requests. Feel free to reject them if you don't have much time. For PoseidonFB 1. It's quite nice, if we have a right click context menu option in every tab to ope...
by kcvinu
May 19, 2021 13:16
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361262

Re: FreeBasic IDE-poseidonFB(Update 2020.07.20)

poseidonFB use fbc to compile files, it always files at first; except for 'Quick Run I think poseidonFB saves just the current file only. I wanted to save all opened files. Assume that we are a doing a simple project with 3 files. 2 "*.bi" files and one "*.bas" file. We wrote so...
by kcvinu
May 07, 2021 23:58
Forum: Libraries & Headers
Topic: FreeBasic containers (map , vector , list , queue , stack , hashtable)
Replies: 21
Views: 8582

Re: FreeBasic containers (map , vector , list , queue , stack)

@Vanya,
Thanks for the much needed library.
I just download it and started reading the chm file. When I read about the list, I found this.
list_type - List Type (Data Type to save in List) . Data type can be: any standart type , including pointers, except (any ptr)
Can I use my own UDT ?
by kcvinu
May 07, 2021 18:24
Forum: Projects
Topic: DWSTRING.bi - Dynamic null terminated unicode string data type
Replies: 27
Views: 7892

Re: DWSTRING.bi - Dynamic null terminated unicode string data type

If you're using WinFBX, you can use CWSTR instead of DWSTRING and the AfxStr functions instead of the DWStr ones. I have posted these variations to make them independent of my framework so that FBer's not wanting to use it for whatever reason can at least use unicode with Windows easily. I even hav...
by kcvinu
May 07, 2021 17:20
Forum: Projects
Topic: DWSTRING.bi - Dynamic null terminated unicode string data type
Replies: 27
Views: 7892

Re: DWSTRING.bi - Dynamic null terminated unicode string data type

@Josep Roca Got it. Thanks for the reply. :) This library is very useful to me. All of my free basic projects are Unicode based. So I use W letter win api functions. They need LPCWSTR type parameter and DWSTRING is perfect for it. I don't know how to express my gratitude. BTW, All your libraries are...
by kcvinu
May 07, 2021 12:36
Forum: Projects
Topic: DWSTRING.bi - Dynamic null terminated unicode string data type
Replies: 27
Views: 7892

Re: DWSTRING.bi - Dynamic null terminated unicode string data type

@ Josep Roca
When I use DWSTRING first time, I wrote code like this,

Code: Select all

.lpszClassName = @ClsName
But it failed. Then I found that there is an operator " * ". And everything worked perfectly. What prompted you to use " * " operator instead of "@" operator?