Companies do this all the time. 'Anything you invent while working for us belongs to us'. And even worse. Remember the guy (Robert Kearns) that invented the alternate speed windshield wiper? Car makers made hundreds of millions stealing his work.
I hate to be a downer, but this practice is not uncommon in real life. How do you think T. Edison was credited with 1,093 U.S. patents, while his employees had few, if any? Unlike the real-life Edison, this fantasy CEO allowed Dilbert to put his name somewhere on the list of inventors.
So how big is the difference between real-life genius heroes and fantasy idiot jerks?