|
This is kind of off-topic so....
What is the prefered background color in order to reduce the strain on the eyes. The setting goes through properties->appearance... (just to clarify what I mean) under MS Win (or maybe under VC properties).
Maybe each and one of you have different prefered color but is there a standard for this
Sorry about the lousy English.
-----------------------
Go USA Go
|
|
|
|
|
|
I use light grey. It seems very easy on the eyes.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
If you use system colors, you can let the user decide.
|
|
|
|
|
I've heard blue and yellow are the 2 easiest colors on the eyes...
I have an 1984 Suzuki RM80 dirtbike and those are it's primary colors. I've always thought it was easy on the eyes.
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Hockey wrote:
I've heard blue and yellow are the 2 easiest colors on the eyes...
I have an 1984 Suzuki RM80 dirtbike and those are it's primary colors. I've always thought it was easy on the eyes.
Laughin so hard I almost fall off my chair
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I think you're asking about what colors to set in the IDE itself? I prefer white text on a black background.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
That's what i meant. Thanks, I'll try both suggestions.
-----------------------
Go USA Go
|
|
|
|
|
the best would be to select dull colors like grey , or even black in the background would do fine .
|
|
|
|
|
hi all,
How to create menu shortcuts in a vc application. I am using dialog based application. I tried out accelerator, but it is not working. Can any one help me...please.
Mahesh
|
|
|
|
|
|
Hai Nish,
I am the Mahesh you know very well.
Thanks..Nish. It's working now.It was a nice article to read.
Mahesh
|
|
|
|
|
Yeah. The subject says it. How to display a true colour icon in the sys tray? It seems my icons change magically to 16 colour when in the sys tray. It's driving me mad. I've been at it for the whole afternoon now without success.
Here's what I'm doing.
void CMyClass::ShowTrayIcon()
{
if(m_bTrayIconCreated == FALSE)
{
if(m_IconList.m_hImageList == NULL)
LoadSysTrayIcons();
ZeroMemory(&m_SystemTray, sizeof(m_SystemTray));
m_SystemTray.cbSize = sizeof(NOTIFYICONDATA);
m_SystemTray.hWnd = GetSafeHwnd();
m_SystemTray.uID = 1;
m_SystemTray.hIcon = m_IconList.ExtractIcon(0);
m_SystemTray.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
m_SystemTray.uCallbackMessage = TaskbarCallbackMsg;
_tcscpy(m_SystemTray.szTip, SZ_APPNAME);
m_bTrayIconCreated = Shell_NotifyIcon(NIM_ADD, &m_SystemTray);
}
}
BOOL CMyClass::LoadSysTrayIcons()
{
CBitmap cBitmap;
BITMAP bmBitmap;
CSize cSize;
int nNoIcon;
if(!cBitmap.Attach(LoadImage(AfxGetInstanceHandle(),
MAKEINTRESOURCE(IDB_BMP_SYSTRAYICON), IMAGE_BITMAP, 0, 0,
LR_DEFAULTSIZE | LR_CREATEDIBSECTION)) ||
!cBitmap.GetBitmap(&bmBitmap))
{
return FALSE;
}
cSize = CSize(bmBitmap.bmWidth, bmBitmap.bmHeight);
nNoIcon = cSize.cx / 16;
RGBTRIPLE* rgb = (RGBTRIPLE*)(bmBitmap.bmBits);
COLORREF rgbMask = RGB(255, 255, 255);
if(!m_IconList.Create(16, 16, ILC_COLOR24 | ILC_MASK, nNoIcon, 0))
{
return FALSE;
}
if(m_IconList.Add(&cBitmap, rgbMask) == -1)
return FALSE;
cBitmap.Detach();
return TRUE;
}
You might have noticed that I commented out the mask colour in the LoadSysTrayIcons() function in the line COLORREF rgbMask = RGB(255, 255, 255);/*RGB(rgb[0].rgbtRed, rgb[0].rgbtGreen, rgb[0].rgbtBlue);*/ with the actual RGB value. This was because the correct colour was not being obtained in the rgbMask . Is it the cause of the problem, ie that the function is not somehow reading the bitmap data properly? What am I doing wrong? Or am I taking an entirely wrong approach? I tried loading icons instead of a bitmap into the imagelist, but that failed to load the true colour icons too. I'd really like to have the icons in an imagelist, but whatever works will be fine with me. As long as the icon is true colour.
Please help. Thanks.
Regards,
Rohit Sinha
|
|
|
|
|
Have you checked the icon which comes from ExtractIcon(0) ?
When I look in the MFC source and the MSDN docs, it all boils down to the function ImageList_GetIcon . Maybe it's retarded in the way that it will only create 4-bit color icons?
Try adding your icon in your resources as a true color icon and then put that in the tray and see if it's any different.
--
Some of them wants to abuse you
Some of the wants to be abused by you
|
|
|
|
|
Jörgen Sigvardsson wrote:
Have you checked the icon which comes from ExtractIcon(0)?
OK I'll do that. I admit I didn't do it till now. :feeling_dumb:
Jörgen Sigvardsson wrote:
Try adding your icon in your resources as a true color icon and then put that in the tray and see if it's any different.
Yeah, I've tried that too. Didn't seem to work.
Regards,
Rohit Sinha
|
|
|
|
|
Jörgen Sigvardsson wrote:
Have you checked the icon which comes from ExtractIcon(0)?
I checked it now by displaying it inside a dialog box and the icon is indeed displayed in all its glory in true colour. Dunno why it's not so in the systray though.
Regards,
Rohit Sinha
|
|
|
|
|
Hmm. How odd! I wish I had any more ideas/suggestions, but I don't. Partly because I'm slightly intoxicated.
--
Some of them wants to abuse you
Some of the wants to be abused by you
|
|
|
|
|
Rohit
Prior to Windows XP, the task tray supports only 16 color icons because it used a 4bpp image list. Perhaps there is some technique to replace this image list. But anyway you now know why your icons dont show properly.
HTH
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Oooh, so that means I'm stuck with 16 colour icons.
Anyway Nish, thanks a lot for that bit of info. I can now stop trying and wasting my time. Thanks again.
Regards,
Rohit Sinha
|
|
|
|
|
Rohit Sinha wrote:
Oooh, so that means I'm stuck with 16 colour icons.
Rohit
It's only a 16x16 icon right? And I dont see why you cant make a decent enough icon with 16 colors considering we are talking about 256 pixels here Unless someone is using a 640x480 resolution on a 21" monitor the task tray icons are gonna be too small for anyone to notice any untidiness
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Well, you are right of course. But the true colour icons are easier to make and look neater. Besides, the colour I wanted to have for my icons are not there in the 16 colour pallette. I'll now have to either use some other colours, or juggle with alternating red, yellow, and white to bring "my kinda orange" look, for example.
Regards,
Rohit Sinha
|
|
|
|
|
I have a game that allows you to display the frame rate in the upper right corner of the screen. I want to intercept the data being shown there so I can determine the minimum and maximum frame rate attained (it changes wildly depending on the current conditions of the game).
I tried using Spy++ to see if I might be able to get a window handle (while the game was running), but no joy.
Does anyone have an idea of how I might go about intercepting this data?
Oh yeah, it must work no matter which 3d engine the game is using - OpenGL or DirectX, and it would be nice if it would also work in both full-screen AND windowed mode.
I was hunting around in MSDN, and noticed that MS recommends writing screen updates (like what I want to intercept) to the "back buffer", and then using GDI calls to update the buffer. I mention this in hopes that it will spark some deeply buried double-super-secret knowledge that someone may have of the process.
Many thanks in advance.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
Use one of the WIN32 API hook techniques (CodeProject articles), and hook ::TextOut().
|
|
|
|
|
Who the HELL voted this a '2' ? Man, I vote that we should be able to see the names of people who vote on our posts. This is just a joke.
Anyhow, yes, S.Rod has probably given the best advice. Any animation should be double buffered, so you have two images, one that is visible and one you are drawing on. If you hook the GDI calls to put text onto a bitmap, that is probably your best bet to catch this stuff.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Hi, everyone!
In one C/C++ applcation, I think I just need to call WSAStartup once and
not every time when I want to open a socket connection. Before, I call
the function each time in a module of my application which needs network
socket communication. Am I correct?
Thanks in advance,
George
|
|
|
|