|
this program downloading some files from the internet , what i want is to rename such files in a certain rules before it begin to download it
|
|
|
|
|
if u want to modify a program to yours in this way, u will not be successful because:
good software products alway have many secrets to protect themself, or dialog (such as About)/text-image on About are dynamically generated from code - not in resource.
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
Hi
I am drawing graphic features in the view. In my MDI application
I want to have multiple view which will reference to same socument .
Those scrollable view should display same graphic content in all the views.
Is this possible? Any such posting on CP? How to get this done?
Thanks,
lee
|
|
|
|
|
Hi Gurus,
I am doing the paint brush application when i resize or minimize the window what i have done get lost
I heared about serialization
can anybody help or suggest how i persist drawed contents on window??
I look forward to your reply
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Hi A_Laxman,
Do you use WM_PAINT?
do you want to save drawing to graphic file
|
|
|
|
|
Hi WhiteSky,
Thanks for your reply
I am doing the app in MFC and as well handling OnPaint method
i just able to see that when i draw the line and when i minimize the application and maximize the line drawn disappers
so what i should do??
or do you have any sample code for same.
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Hi A_Laxman,
you wrote(when i minimize the application and maximize the line drawn disappers)well
I write this code and when I min or max or... the draw is fix
...OnPaint()
{
CPaintDC dc(this);
dc.MoveTo(0,0);
dc.LineTo(100,100);
}
|
|
|
|
|
Hi WhiteSky,
What you replied i aggreed but this is in case of static Data (points in this case)
when i have thosands of lines then how it will possible to draw the thousand of lines each WM_PAINT message
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Dear A_Laxman,
I suggestion for you(It's possible not good)
you draw all lines and save this shapes in the graphic file
then use this file in the one Button CStatic(Bitmap)
Now if you change window this shapes is fix
with this way you can delete WM_PAINT
Have a nice day
|
|
|
|
|
Hi,Everyone!
I amm using Win32.I want to change color of text in listbox control.Who know about this prolem,please help me.
Thanks!
|
|
|
|
|
|
|
case WM_CTLCOLORLISTBOX:
SetBkColor((HDC)wParam,RGB(0,0,0));
SetTextColor((HDC)wParam,RGB(30,120,0));
return (LRESULT)CreateSolidBrush(GetSysColor(COLOR_WINDOW));
break;
|
|
|
|
|
Hi.
If let a window always hide, hook which message?
Thanks.
|
|
|
|
|
Do you mean, How do I hide a window? Sorry but your question does not make sense to me.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
-- modified at 23:15 Friday 31st March, 2006
|
|
|
|
|
|
The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown.
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Not need hook WM_WINDOWPOSCHANGING (SetWindowPos)?
|
|
|
|
|
Not sure why you are asking to hook anything but:
ShowWindow(hwnd, SW_HIDE)
John
|
|
|
|
|
Isn't my window, and i don't know what time it show.
|
|
|
|
|
Ok then a hook is in order. You can use a WH_CALLWNDPROC hook but its operation depends on how much information you know about the window you are trying to hook. Usually you need to know the title of the window, but the name of the application may be all you need.
John
|
|
|
|
|
Hi,
I have just discovered that it appears to be 10 times more complicated to deploy a VS 2005 app than one from VS 2003.
Now the docs say I have to worry about manifests, shared assemblies, isolated assemblies, and private assemblies.
What is the simplest way to deploy an MFC 8.0 app ?? It doesn't need to share any dlls with any other app, it's not COM, and there is no managed code in it.
|
|
|
|
|
If it's statically linked to the MFC libraries then you only have to distribute the exe. If it's dynamically linked to MFC then you have to distribute the MFC libraries with it.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
return nCode<0 ? CallNextHookEx(hh,nCode,wParam,lParam):0;
thats the only line for GetMsgProc (WH_GETMESSAGE).
And it blocks language switching... neither ALT+SHIFT nor mouse switching
works
Why ????
|
|
|
|
|
This is the general parrern I use for my hook procedures:
LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
LRESULT res = CallNextHookEx(g_hHook, nCode, wParam, lParam);
return res;
}</code>
You should always call the next hook in the hook chain unless you want to stop other hooks from processing the event - I suspect the language switching is implemented as a hook and you're not giving it a chance to process the event.
Steve
|
|
|
|