|
Thanks for replying me
|
|
|
|
|
|
|
Vijjuuuuuuuuu........... wrote: ...to julian date...
Which one?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
i am RichEdit box in my application,...how can i change the background colour of this RichEditBox?need help plzz!!!!
|
|
|
|
|
Use SendMessage to send the EM_SETBKGNDCOLOR message to the rich edit control.
Look at the documentation for EM_SETBKGNDCOLOR on how this is done.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Hi
I need to log a warning message if count of similar active X controls on a window is greater than 10. I have the window name with me. I need the logic to count the Active X controls on same window.
Thanks.
|
|
|
|
|
I suppose (it's just a guess, however) you simply cannot do that.
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]
|
|
|
|
|
Hai!
In the Resource view of my application there are folders such as Dialog, String table, Icon, Version. If i click the version a window appears which contains the updated values of file version and product version etc.
How can i programmatically get this value of product version as i need it to display in an AfxMessageBox. Is there any function to access this value of Product version.
Thanks!
|
|
|
|
|
Check out the following APIs
GetFileVersionInfoSize
GetFileVersionInfo
VerQueryValue
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
CodeProject has articles showing you how to do that.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have been posting messages re: WIN32 C app my last few question have been regarding Calculating the number of characters in the edit control of a Rich Edit Dialog Box
All of the really nice pepole here have been sending me code snipts to help me out however most of the Code was of the MFC variety
In order to get with the program I decided to re-write my C app using the MFC classes as opposed to plain old WIN32 SDK api's
So now getting back to My orignal Problem I have been using WM_SETTEXT and EM_REPLACSEL meesages to highlight certian pieces of the Dialog Box
Now that I am using the methods to the base Class CDialog
seems using the DDX macros is the way transfer data as opposed to
WM_SETTEXT and WM_GETTEXT
will DDX still work To HighlIght data using EM_RELACESEL ????
thankx Again
|
|
|
|
|
Why don't you try it?
Why don't you use CRichEditCtrl::ReplaceSel [^]?
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]
|
|
|
|
|
thankx it takes a while to get into a new way of thinking
|
|
|
|
|
Well, you haven't: Win32 programming is amazing...
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]
|
|
|
|
|
I meant OO Derving a CWND and using the methods as opposed to C calls
|
|
|
|
|
I've started a new website and I am looking for members interested in programming and linux. We are needing people who have the desire to learn linux on a higher level. Subdomains, FTP accounts, and web space for members will be offered sparingly to those seriously interested.
datdirt.com
|
|
|
|
|
Your message has been reported as abuse.
Please read carefully Chris message at the top of the forum before posting.
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]
|
|
|
|
|
Yeah I'd seen that that was sitting there for awhile and thought I was missing something Looks like I wasn't.
Regards,
--Perspx
|
|
|
|
|
Hi Guys
I have a business full screen appliection (A.exe) run in Windows 98.
I need a hotkey when the appliection is running,Press SPACE key ,Excute a Dialog based program "C.EXE".
I try to use "RegisterHotKey" function ,But the hot key does not work.
Now I try to use Keyboard hook, I create a Dialog based program "B.exe" and "B.dll",When "B.exe"
excuted,It launched hook callback function in "B.dll".
Excute Sequence :B.exe A.exe
when A.exe is running ,I press SPACE key,the hook function catch the keyboard message,
it call C.exe (use the "ShellExcute"),The window of C.exe appear.
Qustion: The window of "C.exe" isn't current active window.the window of "A.exe" is active windows yet!
I need the window of C.exe is active when it appeared.
LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
BOOL fEatKeystroke = FALSE;
PKBDLLHOOKSTRUCT p = NULL;
if (nCode == HC_ACTION)
{
p = (PKBDLLHOOKSTRUCT) lParam;
switch (wParam)
{
case WM_KEYDOWN:
if (p->vkCode == VK_SPACE)
{
return 1;
}
break;
case WM_KEYUP:
if (p->vkCode == VK_SPACE)
{
ShellExecute(NULL,"open","C:\\C.exe",NULL,NULL,SW_SHOW);
HWND h=FindWindow(NULL,"Caption of C");
if(h)
{
ShowWindow(h,SW_SHOW);
}
return 1;
}
break;
default:
break;
}
}
return (CallNextHookEx(glhHook,nCode,wParam,lParam));
}
void _stdcall StartKeyMask()
{
glhHook = SetWindowsHookEx(WH_KEYBOARD_LL,LowLevelKeyboardProc,glhInstance,0);
}
void _stdcall StopKeyMask()
{
if (glhHook!=NULL)
UnhookWindowsHookEx(glhHook);
}
modified on Sunday, February 22, 2009 10:53 AM
|
|
|
|
|
|
use " SetForegroundWindow" no effect
thank you
|
|
|
|
|
|
As i do implement my software for several platforms, i am using different IDEs / SDKs on the PC, not all of them have the STL or infact C procedures like strtok or strchr implemented.
As i do not want to reinvent all of this again, i would like to ask, if there is open / free STL source which i could include for those projects which base on let say a C++ Compiler with not relying on standard procedures (like strcpy).
I found a product called STLport. Would i be able to adapt this for my needs.
Compilers used are the VC6, VS2005 and gcc.
|
|
|
|