|
Crap, I never seen that before!!! that's awful behaviour!!!
Don't do that, it's not a standard behaviour (according to the Vista/7 User Experience document, as far as I can see).
In general, you don't hide UI components and have the user "discover" them by luck.
Watched code never compiles.
|
|
|
|
|
Yes, I agree that it is not a good behavior. But I was building an application (console Gauges) and I wanted to strip them as much as possible even hiding toolbars, titlebars. If all controls are stripped from my app including menu bar, I needed an easy toggle to get them back on the app, thats how I came across the Alt key behavior.
|
|
|
|
|
I've also seen this on Windows Live Mail and some others that I don't remember.
After spy++ing on the messages to the window it looks like you have to do this yourself.
You could maybe use SetMenu to show and hide the menu when the Alt key is toggled.
|
|
|
|
|
I am able to see that feature on Windows 7 file explorer.
|
|
|
|
|
Ahhhh the beauty of GUI guidelines...
They can be always violated by the developer of the guideline themselves!
(have you ever see Office being consistent with the OS it works on ?)
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hi all,
i m takinh help of this article to generate self delete exe
[]Writing a self destructing exe file[^]
but the folder of exe not delete.
i have already tried another option,at run time with the help of another exe put my exe on another location and execute it but still the folder is not delete.
please help me for this.
thanks.
|
|
|
|
|
Please use the message board at the bottom of that article.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
He did.
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]
|
|
|
|
|
Look at the DeleteExecutableBF() function here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
That must be a usefull function for girls who are unsatisfied with their "executable" BoyFriends...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi,
How to get Geo location on my PC. How to get it?
|
|
|
|
|
john5632 wrote: How to get Geo location on my PC. How to get it?
Your PC is nearby you (from "relative Geo location for dummies...").
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]
|
|
|
|
|
Using IP address how to get the Geo location of any PC
|
|
|
|
|
Install GeoLite[^] or one of the many commercial geolocation packages.
|
|
|
|
|
How to get through code only?
|
|
|
|
|
You can't translate IP address to geographic location with "code only", you must have a database that maps address blocks to locations.
|
|
|
|
|
Well, he can always create a database on his own . As he really wants to reinvent the wheel, he should also reinvent the car that goes with it
|
|
|
|
|
Have you looked at this?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
It's wrong: it gets the firewall address (of course) and place it in a wrong place... for either me and the firewall
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
How can i set the size and position of contols in my win32 application
thanks in advance
|
|
|
|
|
Like this?
HANDLE hQuit = CreateWindow(<br />
"BUTTON",<br />
"Quit",<br />
WS_CHILD | WS_VISIBLE | BS_BITMAP ,<br />
350,
200,
100,
30,
hMainWindow, <br />
(HMENU)ID_BUTTON5,<br />
hMainInstance,<br />
(LPVOID)NULL);<br />
if(hQuit == NULL){<br />
MessageBoxW(0, L"Error creating button!", L"ERROR", MB_ICONERROR);<br />
return -1;<br />
} else {<br />
ShowWindow(hQuit, SW_SHOW);<br />
UpdateWindow(hQuit);<br />
}
011011010110000101100011011010000110100101101110
0110010101110011
|
|
|
|
|
Thanks
But i would like to get the size and position of my existing controls in the window
when i get the message WM_SIZING ie when i resize my window
|
|
|
|
|
What about calling GetWindowRect for each control?
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]
|
|
|
|
|
Here's a mickey mouse example.
It assumes a child control (a button in my instance) exists and has the ID of IDC_BUTTON1 (#define IDC_BUTTON1 1000)
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wWidth, wHeight;
int bWidth, bHeight;
RECT btnRect;
HWND btnHwnd;
switch (message)
{
case WM_DESTROY:
PostQuitMessage (0);
break;
case WM_SIZE:
wWidth = LOWORD(lParam);
wHeight = HIWORD(lParam);
btnHwnd = GetDlgItem(hwnd, IDC_BUTTON1);
GetWindowRect(btnHwnd, &btnRect);
bWidth = btnRect.right - btnRect.left;
bHeight = btnRect.bottom - btnRect.top;
SetWindowPos(btnHwnd, HWND_TOP, (wWidth-bWidth)/2, (wHeight-bHeight)/2, bWidth, bHeight, SWP_SHOWWINDOW);
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
|
|
|
|
|
thanks a looooooooooooooooooooooot
|
|
|
|