|
yes.....
use the ModifyStyle() function...
if the optionis initially there.....
then write it as .....
ModifyStyle(WS_TABSTOP ,0);
dont see y it shouldnt work.....
try it.....
happy programmin.....
cheerz.....
|
|
|
|
|
I have a dialog, which starts modeless subdialogs. They run nicely, but they always stay on top of the parent, even when the parent has the focus (I can type in data in a control of the parent window, if I move the child enough to the side).
I trapped WM_ACTIVATE and issued SetWindowsPost(&wndTop...). This gets the control and works almost well (it moves the window If I want to), but it still remains under the children.
What else do I have to do in order to win over the children?
|
|
|
|
|
Make the subdialogs parent while creating them as the desktop window by calling GetDesktopWindow() i guess that should fix the problem.
-prakash
|
|
|
|
|
That works well (although I wanted to avoid seeing the subdialogs on the task bar, but I can solve that otherwise).
Thanks you.
I wanted to rate your response, and accidentally clicked on "1". Sorry for that.
|
|
|
|
|
"I wanted to rate your response, and accidentally clicked on "1". Sorry for that."
nevermind.
-prakash
|
|
|
|
|
I have a situation where users are trying to create large 24bit DIBs (10,000 x 10,000) or greater and CreateDIBSection is failing. The problem appears to occur when virtual memory gets low. I can create the large DIBs when I don't have a lot of memory allocated for other things. I tried using the following:
HANDLE hFileMap = CreateFileMapping( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, dwStorageSize,NULL);
dwLE = GetLastError();
if(INVALID_HANDLE_VALUE == hFile)
hFile = NULL;
if( NULL == hFileMap)
ErrMsg( dwLE);
LPVOID pDibBits = NULL;
HBITMAP hBitmap = ::CreateDIBSection( NULL, m_bitmapinfo, DIB_RGB_COLORS, pDibBits, hFileMap, 0);
dwLE = GetLastError();
The thought was that using CreateFileMapping() to allowcate memory for the DIB bits when memory was low but it still fails and GetLastError() return 0 which does not help. Is there a way to use swap file or temporary disk files as storage space for DIB bits when processing large bitmap files?
|
|
|
|
|
Its not a question of having enough RAM, you need to have enough address space available in your process. I think you won't have this issue on a 64 bit OS and a 64 bit process. Even a 32 bit process on a 64 bit OS helps as long as the process is Large Address Aware.
|
|
|
|
|
Hey,
While executing my program the debugger states that the program "...UserInterface.exe" has exited with code -1 (0xFFFFFFFF). I'm executing this program after a period of about 4 months. It was working fine when I left it. The only thing thats changes is that I had reformatted my computer and reinstalled windows. I have changed all the path changes made in the code.
Any idea why this happens?
Regards
|
|
|
|
|
Hey,
Never mind the question. Found the bug.
Thanks...
|
|
|
|
|
Can anybody point me to some example code or give me some tipson how to get a .jpg blob from an Access database into a static (picture) control?
Thanks in advance,
John
|
|
|
|
|
what program should I use to block my I.P. adress? Is ghost surf a good program?
thanks,
T.K.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...Where is the light?
I Wonder,
if it's weaping somewhere...
|
|
|
|
|
I htink you can LOkk for any FireWalls,search for free FireWall at Google
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
hey, we're talking about how to program, not how to use programs...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
How can i put a control, as CEdit, into an CMenu Item?
Thanks at everyone...
|
|
|
|
|
why on earth would you want to put a CEdit in a CMenu item ?!?!?!
me think you need to completly recode and redesign the menus.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
I'm interested in creating a window which is always on top. I've used SetWindowPos() which results in a stay-on-top window. This doesn't work (i.e. the window is not visible) however, with applications which make use of DirectX full screen exclusive mode as the DirectX app takes precedence over the stay-on-top window.
It would seem like DLL injection and API hooking may be what is required for this. i.e. inject into applications and hook the DirectX present() call, thereby allowing your app to render things on top of the DirectX display. I've seen some apps which appear to be doing this and they seem to work fine.
The problem there is that I don't simply want to render simple graphics/text on top of the DirectX display. I'd like the window itself to display and be useable. It would seem you'd need to render and capture events to really allow the user to interact with the window. Of course, if this is not feasible, at least rendering some simple text/graphics would at least be acceptable.
Anyway, just wondering if anyone knows of any sample/packaged code which takes care of this for you (either the simpler case of just rendering on top of DirectX or the more complex case of actually presenting an interactive window on top of DirectX).
Also, note that it would need to work regardless of whether such a DirectX app is running. i.e. it would still be necessary to have the normal window up with the stay-on-top attribute, and then have the DirectX interaction activate only while an app is using DirectX fullscreen exclusive mode.
|
|
|
|
|
so far, i only use VC 6.0 developing applications for all windows - so icon inside exe files, as you know, is 16 colors with size of 32x32 and 16x16 pixels.
i have 2 Questions:
1) which OS (i.e. XP) uses different exe icons? are they created by VC (what version of VC) also?
2) if an exe has different icon, does it work on all OS (even for win95)?
thx
includeh10
|
|
|
|
|
Windows 98, 2K and XP support 256 colour icons and XP supports 32bit colour icons (that have an alpha channel that gives the nice anti-aliasing effect)
Icons can be 16x16, 24x24, 32x32, 48x48, 64x64 or 96x96 (although most of the larger sizes will only really be used by XP)
Thanks to the way Windows handles icons, it doesn't matter if you have icon types that a particular version of Windows can't handle (i.e. if Windows can only handle 16 colour icons, then as long as your icon resource has a 16 colour version then it'll ignore the other versions and just display the one it can)
In other words, if you want your icon to look nice, then add 256 colour versions (which visual studio should be able to handle - easiest way is to make a 256 colour image in a paint program and paste it into the VC editor)
Making the antialiased XP style icons is a bit more complex though - there's an article here:
Clicky[^]
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
I need to make this to where the if statements only work if a number is entered. Otherwise it should go back to main(). I tried an else but it did not come out right.
This is a pointless program for math class but I have to do it. Thanks
#include "iostream.h"
#include "math.h"
///////////////////////////////////////////////////////////////////////////////////////////
int Y;
int A;
int X;
///////////////////////////////////////////////////////////////////////////////////////////
int main()
{
cout << "i to what power?\n";
cin >> X;
///////////////////////////////////////////////////////////////////////////////////////////
if (X >= 4)
{
Y = X % 4;
if (Y == 0)
cout << "iX = 1\n";
if (Y == 1)
cout << "iX = i\n";
if (Y == 2)
cout << "iX = -1\n";
if (Y == 3)
cout << "iX = -i\n";
}
if (X < 4)
{
A = X;
if (A == 0)
cout << "iX = 1\n";
if (A == 1)
cout << "iX = i\n";
if (A == 2)
cout << "iX = -1\n";
if (A == 3)
cout << "iX = -i\n";
}
main();
return 0;
}
|
|
|
|
|
HaXXeD wrote:
I need to make this to where the if statements only work if a number is entered.
Why not use isdigit() ?
HaXXeD wrote:
main();
Are you sure you want to recursively call main() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
If there is a better way then that would be great. Recursively calling it doesnt hurt though.
|
|
|
|
|
there's a better way ... trust me, There's a better way.
go back to your books, and look up the different loops techniques.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
HaXXeD wrote:
Recursively calling it doesnt hurt though.
The reason recursively calling main() is not hurting, is that you are not calling it enough times to do so. It is a bad idea to use recursion, where a simple loop will do the job.
As a general rule: Never call main() recursively.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
What if i want to restart a program ?!?
-prakash
|
|
|
|