|
That windows, which title bar is to removed, is third party application.
|
|
|
|
|
|
::SetWindowLongPtr(hWnd, GWL_STYLE, ::GetWindowLongPtr(hWnd, GWL_STYLE) & (~WS_CAPTION));
|
|
|
|
|
Remove the relevant styles from the target window:
DWORD dwStyle = ::GetWindowLong(hWnd, GWL_STYLE);
DWORD dwRemove = WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
DWORD dwNewStyle = dwStyle & ~dwRemove;
::SetWindowLong(hWnd, GWL_STYLE, dwNewStyle);
::SetWindowPos(hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
Alain Rist wrote: DWORD dwNewStyle = dwStyle & ~dwRemove;
You may just use
DWORD dwNewStyle = dwStyle ^ dwRemove; there.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Right
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
You're the only one that seems to know anything about creating a full screen in Win32. I know I asked before in a different thread, but there is really no documentation about how to hide the app menu that I create in the resource file. I have tried ending it by using EndMenu, destroying it with DestroyMenu(), but nothing seems to work. Do you have any idea?
Cheers,
-J
|
|
|
|
|
|
Okay... I read the articles you created linked to above. They are very nice. Correct me if I'm wrong... Are you saying that it's not possible to set the orignial menu and original styles without using ATL or MFC?
|
|
|
|
|
Please don't crosspost
I certainly don't say that. The CFullScreenImpl::SetFullScreen(bool bFullScreen) code resolves to Win32 API calls.
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
Does anyone know where to find Standard MS Terminology Translations between English and Dutch. for Instance: File<->Bestand, YES<-> Ja,
No<-->Nee, Cancel<->Anuleren.
Bram van Kampen
|
|
|
|
|
How about installing a Dutch version of MS Office?
Or, even simpler, looking at Google Docs?
BTW: Cancel -> Annuleren.
|
|
|
|
|
Hi,
Luc Pattyn wrote: How about installing a Dutch version of MS Office?
Never thought of that one. You may be more familiar with those issues in Belgium. I am dutch by birth, (Delft), but have lived in Ireland since 1980. Home now for my father's 86th birthday, and realise for the first time, that in this localisation even the names of the windows menu's change. Never knew that that was the case. (My spelling of Dutch also slipped in the last 30 years. (Anuleren<-->Annuleren) but what I see now frightens me! Nothing looks familiar anymore).
Luc Pattyn wrote: Or, even simpler, looking at Google Docs?
Never tried that either, The issue is to do things in the 'Standard'Microsoft way.
I also keep hitting wrong keys because the keyboard has keys in different places, and generally, reacts different to do things in the different locality. It types a ç when I want a 'c' etc.
Thanks a lot,
Bram van Kampen
|
|
|
|
|
It becomes really frightening when you try to automate stuff by sending ALT+letter to some window; the letter depends on the language, ALT+F for File may well become ALT+B for Bestand.
As I develop on English systems but several of my customers use Dutch systems, my code often supports both (without going the official globalization/localization way).
|
|
|
|
|
Since you live in the US, you may not be aware of this: a lot of software products exist in a couple of versions, including a "domestic" version (US English only), and an "International" version which supports a number of languages, selectable either at install-time or at run-time. So you could look for one of those and change the setting.
AFAIK in Europe Windows itself comes in country-specific packages, so in the Netherlands that would be Dutch only.
FWIW: I always buy English software, so I might be no great help as far as Dutch GUI texts go!
|
|
|
|
|
Hi,
Luc Pattyn wrote: Since you live in the US, you may not be aware of this: a lot of software products exist in a couple of versions, including a "domestic" version (US English only), and an "International" version which supports a number of languages, selectable either at install-time or at run-time. So you could look for one of those and change the setting.
AFAIK in Europe Windows itself comes in country-specific packages, so in the Netherlands that would be Dutch only.
FWIW: I always buy English software, so I might be no great help as far as Dutch GUI texts go!
Well, Actually, I do NOT live in the USA, I live in Newry in Northern Ireland.
Continue in 'The Lounge'.
Bram van Kampen
|
|
|
|
|
Sorry, my mistake. Europe should be sleeping right now...
|
|
|
|
|
Is there any library in C for Linux to get gpu information for example BIOS Verison DigitalID...
|
|
|
|
|
Hello,
When I tried to buid a Visual C++ project downloaded from CodeProject website, I got many errors in the style of "MSVCRT.lib(MSVCR90.dll) : error LNK2005: _atoi already defined in libcmt.lib(atox.obj)". I am trying to bulid MFC and Visual C++ runtime libraries in static form. However I have no problem when building for shared dll for both mfc and c++ runtime libraries.
In another project, there's another problem: I cannot tell the compiler do not support for UNICODE i.e. UNICODE is always "defined" even when I have "Use Multi-Byte Character Set" selected from the general configuration. Also there is no UNICODE defined in preprocessor definitions in Project Property.
Regards,
Real Eyes Realize Real Lies.
|
|
|
|
|
Hello,
Can Win32 Exe export functions just like Win32 DLL do. If yes then, I'll parse that PE and extract all signatures of those exports from export table.
I need to call function of Win32 Exe dynamically(On run time I will choice which function I'll choose, and for this I need address and parameters...parameters I will pass it on run time and address I 'll need).
I will use LoadLibraryEx and will call functions using GetProcAddress routine.
Suggestions and recommendations?
Regards
Muhammad Usman Khalil
|
|
|
|
|
Yes, exporting and importing functions from / to an EXE file is exactly like it is for a DLL file.
|
|
|
|
|
As Gwenio said you can export from an EXE and call LoadLibrary on it just like a DLL.
But the thing to remember here is that when you call LoadLibrary on an EXE, the code in the EXE will be mapped to the calling process and will not be a separate process like when you execute the EXE.
|
|
|
|
|
What about GetProcAddress?
Will it return valid functional addresses which were exported by that EXE?
More over all these exported functions will be available in export table?
|
|
|
|
|
|
I know about PE file format.
But the thing is PE(Exe) don't contain any export directories and export tables at all for their exports. I think I need to parse .text(Executable code section)for getting the Win32 EXE functions.
as converting Win32 Exe to DLL also not an easy task at all.
Regards
Usman
|
|
|
|