Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 help

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
Hey guys...I'm trying to transition from "good ol" MFC to the Win32 API. I need help in creating a button. I've got my program to create and register a windows class just fine and the program runs. I tried creating the button using CreateWindow in the WinMain() function. When I run the program, the button doesn't show up, BUT when I click in the area of WHERE the button is supposed to be, it magically appears. My guess is that it just isn't initializing when the program first starts. I've tried doing ShowWindow() and UpdateWindow() right after I create the button and I have captured the WM_PAINT message. What would be causing the button to NOT appear when I first run the program. Thanks for all your input....I'm so used to the ease of MFC.

Niky Williams
NTS Marketing, Inc.
 
lol, nevermind, I found the problem. I had some code on the WM_PAINT message and I think it was just causing my button to not show. Just commented out the code and the button shows when the program runs now. If ya'll have any suggestions for a "newbie" in the Win32 area, please let me know. Thanks again for all your time!

Niky Williams
NTS Marketing, Inc.
 
Hi all,
Currently, I am writing an app that need to configure COM port properties, however I have trouble of writing code to disable the option of using UseFIFO buffers in C++.

COM1 Properties / Advanced Port Settings/
Use FIFO buffers (requires 1655 compatible UART)
option need to be turned off.

If anyone know about this, please help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top