Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: NoCforMe on May 24, 2025, 05:03:54 AMYes, except that I need to locate the master control structure for each control.Why do that, when each control has it's data within?
Quote from: NoCforMe on May 24, 2025, 05:03:54 AMOne thing I found annoying was that in order to delete rows in a ListView you have to start at the end and work your way backwards.
Quote from: guga on May 23, 2025, 10:17:45 PMHi Guys
I`m updating a FputoString function and have some doubts about the scientific output format. In normal printf it seems that when dealing with Floating points, 0 can be represented as: 0.00000e+00, 0.00000e-00, or 0.000000 etc etc, right ?
My question is...this format to represent 0 is really necessary ? Shouldn´t it be simpler to represent it as a single 0 ?
What´s the purpose of using formats such as: 0.00000e+00, 0.000 etc etc ?
Quote from: sinsi on May 22, 2025, 11:05:15 PMYes, but all of these can be set when the control is created; are you suggesting being able to change them after creation? Could be done, with a bit of complexity.Quote from: NoCforMe on May 22, 2025, 02:40:30 PM4. Should the user be able to change column characteristics (font, text & background colors) on the fly? Currently these are set at control-creation time and can't be changed thereafter.Yes to all three, what is legible to you may just be blobs to another.
QuoteI would't personally use it as I think a ListView is easierNow that's an interesting data point, so noted: I haven't seen much interest in using this yet here, so it might just end up being another one of my private custom controls.
Quote from: sinsi on May 23, 2025, 03:56:30 PMA control should be self-contained, so use a structure for per-instance data (per control).Good suggestion (and easy to implement) on the private data, always a handy thing.
When you register the class, add 4 bytes (SIZEOF PTR) to WNDCLASSEX.cbWndExtra. This would be a pointer to any private data, stored in a structure.
QuoteOn WM_NCCREATE you would allocate memory for the structure and initialise it, using SetWindowLong to save it to that control.I do this, but on WM_CREATE instead. No need to use SetWindowLong(), as all that is done internally. But yeah, basically the same scheme.
QuoteNo need to keep track of created controls, the HWND takes care of finding the data.Yes, except that I need to locate the master control structure for each control. I suppose you could use GWL_USERDATA as a pointer to that structure. (I have a routine, FindControl()) which locates the structure using the handle passed into the control's proc.)
QuoteShouldn´t it be simpler to represent it as a single 0 ?
Quote from: guga on May 23, 2025, 10:17:45 PMWhat´s the purpose of using formats such as: 0.00000e+00, 0.000 etc etc ?
Quote from: guga on May 23, 2025, 10:17:45 PMHi Guysreal4 and dword have in common zeros have same encoding,so if you want to you could use conditional jump and print "0",if you discover a zero
I`m updating a FputoString function and have some doubts about the scientific output format. In normal print it seems that when dealing with Floating points, 0 can be represented as: 0.00000e+00, 0.00000e-00, or 0.000000 etc etc, right ?
My question is...this format to represent 0 is really necessary ? Shouldn´t it be simpler to represent it as a single 0 ?
What´s the purpose of using formats such as: 0.00000e+00, 0.000 etc etc ?