Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Why buttons are displayed in xp but hidden in windows 7?

17 Jun 2014   #1
RachelIsr

windows 7 64 bit prof
 
 
Why buttons are displayed in xp but hidden in windows 7?

The question is : Why buttons are displayed in xp but hidden in windows 7?
The code that I use for the buttons is createwindow. The buttons are child control.

I run win32 program on windows 7 64 bit.
The program is running prefect on win xp.
On win7 the buttons are hidden and if I click the button position, it is flashing for a mili sec.
So the buttons are created and responding but hidden behind the parent window.

The code that I use is : CreateWindow (TEXT("button"), ctrlText, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | BS_BITMAP, 250, 110, 100, 25, hwnd,(HMENU)ctrlID, hInstance, NULL);

I don't know how to solve this problem. Tried to change the style, use createwindowex instead of createwindow, call InitCommonControls but failed to solve the problem.

Thank you,
Rachel


My System SpecsSystem Spec
.
27 Jun 2014   #2
MilesAhead

Windows 7 32 bit
 
 

In Remarks section for CreateWindow I see:

Quote:
If the created window is a child window, its default position is at the bottom of the Z-order. If the created window is a top-level window, its default position is at the top of the Z-order (but beneath all topmost windows unless the created window is itself topmost).
To me that implies you have to do something like calling SetForegroundWindow on the handle. Maybe they changed the API since XP.
My System SpecsSystem Spec
Reply

 Why buttons are displayed in xp but hidden in windows 7?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to see hidden text or hidden streams in a doc(x) file in Starter
I was checking Microsoft Office Word Starter 2010 and I realized that one of the files had hidden text in it. From Options - Display, I chose show hidden text and it was "Top of Form" at the top of the page. But I got curious about this and made some search and I realized that you can hide text in...
Microsoft Office
Tabs go tiny, lists and buttons go hidden after a restart
So the strangest things has happenned on my Win7 x64 -- the tabs are tiny in programs such as Task Manager. Also, text is hidden in buttons and lists. IE9 crashes with gmail. Other important screens also show the same hidden text behaviour. Luckilly, many programs do not have this bug. However, the...
General Discussion
My pc is not showing Hidden Folders even after enabling - "Show Hidden
My pc is not showing Hidden Folders even after enabling - "Show Hidden Files, Folders and files"... now here is how it goes... i open folder options in the explorer, and saw that none of the options "DON'T Show Hidden Files, Folders and files" or "Show Hidden Files, Folders and files" is...
Performance & Maintenance
Windows 7 gadgets not displayed correctly
Help please.!
BSOD Help and Support
Windows Boot Manager not being displayed
Hi, I'm new to the seven forums ;). I've got Windows 7 dual booted with vista, but the boot manager is not being displayed, for me to select which version of Windows I want to boot up. I have got both Windows 7 & Vista on seperate Hard drives. Does anyone have any idea, how I can enable the boot...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:59.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App