Thread: disabling minimize and mazimize boxes on Microsoft display output

  1. #46
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    Quote Originally Posted by john.c View Post
    You have proven yourself to be a moron and an a-hole. You are outside this forum's scope of humanity.
    Throwing mud and using gutter language won't save your face after posting flawed code.

  2. #47
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    Quote Originally Posted by adeyblue View Post
    They got a working answer days ago from the FreeBasic forum of all places
    disabeling the minimize and maximize box - freebasic.net
    Yes very true. FreeBasic has no problems with the issue. I compared the code, that was suggested to me up front, with with that FreeBasic code, as I said then, and corrected the flawed Cboard code. I was asked to explain the expression "not working". The discussion got no further than that, and finally the inability to come up with an answer to my posted query sadly turned into being called an a-hole.

  3. #48
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Quote Originally Posted by Ivory348 View Post
    Yes very true. FreeBasic has no problems with the issue. I compared the code, that was suggested to me up front, with with that FreeBasic code, as I said then, and corrected the flawed Cboard code. I was asked to explain the expression "not working". The discussion got no further than that, and finally the inability to come up with an answer to my posted query sadly turned into being called an a-hole.
    That's because FreeBasic's OR operator is bitwise, not logical like you're attempting to use in your flawed C code. You were given the answer many posts ago and for some bizarre reason refuse to fix your code. Fix the data types that you got wrong, fix the use of the incorrect operators and everything will probably work. Turn on your compiler warnings.

    Edit: Based on your attitude I'm not sure I should be giving you more information but toggling the least significant bit, which is what you're doing, toggles the window to be modal/non-modal. So it appears that if your code is working (in C) it's only because modal dialogs don't have minimize/maximize buttons. But you don't want a modal dialog, you want a normal window without the minimize/maximize buttons. So, if it's working, it's only because it appears to be working; i.e. an accident and it does something very different you what you wanted to do. Why can't you fix your code to use bitwise operators as required (and fix the LONG_PTR mistake)?

    Edit 2: It seems that you might not even know what bits are and how to manipulate them
    Last edited by Hodor; 12-17-2019 at 02:20 AM.

  4. #49
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    [QUOTE=Hodor;1292142]That's because FreeBasic's OR operator is bitwise, not logical like you're attempting to use in your flawed C code. <snipped>/QUOTE]

    There might be shortcomings in the code I posted else I would have had no cause to post a query. Of course I lack knowledge, as you rightly say, therefore I turn to a forum for help. A lot of suggestions have been made. There was no suggestion that actually worked. I tried them all!! If the freeBasic code is flawed, why then does it work perfectly well (I have already, on request, defined the term "doesn't work"). Given the fact that no suggestion worked, why has this discussion turned into an argumentative, mud throwing exercise like being called an arshole? Given the multitude of suggestions that have been made, just for once post code that you say is flawless and I shall be very happy to try it and we can end this fruitless tail-biting.
    Last edited by Ivory348; 12-17-2019 at 03:52 AM.

  5. #50
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Ivory348
    We have been at I for a number of days now, without getting anywhere.

    (...)

    FreeBasic has no problems with the issue. I compared the code, that was suggested to me up front, with with that FreeBasic code, as I said then, and corrected the flawed Cboard code. I was asked to explain the expression "not working". The discussion got no further than that, and finally the inability to come up with an answer to my posted query sadly turned into being called an a-hole.
    Basically, you want a working solution handed to you on a silver platter. When you did not get that, you tried fixing the tentative solution that you did get by comparing with working code from another programming language but failed, but instead of working with other community members to arrive at a working solution, you refused to give detailed feedback and try a discovery process but rather just kept waiting for the working solution to be handed to you on a silver platter.

    The fact is that sometimes you will indeed get a fellow community member who posts a code snippet that works for you from the outset. More often, you won't. You might get code that is close but isn't quite what you want, or fails to compile because of some typo, or fails to work because of some secondary oversight, or that is a contrived example that you must retrofit for your actual code, or you might only get suggestions on how to arrive at a solution with no or minimal code shown to you. Whichever it is, programmers will make use of what they get to come up with a working solution, or if they cannot do that, they will provide as much detail in their feedback as possible so that someone else -- who might not necessarily be the person that initially replied -- might be able to help them come closer to a working solution.

    Unfortunately, when newbies persistently fail to do this and do things like present themselves as entitled to a solution on a silver platter, sometimes we do get experienced programmers who then insult and belittle them. I can't say I approve of the bad behaviour, but I can also understand why such programmers can get all cranky and dismissive.

    What I can say in closing is this: if you want to get the most out of online communities for programmers, read Eric Raymond's classic article on How To Ask Questions The Smart Way

    Beyond this, this thread is obviously a dead end that can only lead to unproductive arguments, so I shall close it.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 10-25-2019, 05:13 AM
  2. Replies: 0
    Last Post: 10-25-2019, 05:13 AM
  3. Microsoft display
    By zach in forum Windows Programming
    Replies: 1
    Last Post: 09-07-2019, 01:48 PM
  4. LCD 16x2 Display only shows black boxes?
    By ElectronicX in forum C Programming
    Replies: 4
    Last Post: 06-12-2012, 08:17 AM
  5. output file display -- Need Help
    By boostpower in forum C Programming
    Replies: 2
    Last Post: 04-06-2006, 01:50 PM

Tags for this Thread