|
|
Richard MacCutchan wrote: You may want to look into the Custom draw[^] or Subclassing Controls[^] features of Windows controls.
Would you show me the detail?
I use MFC to "remix" control. I don't use WINAPI.
Please help me!
My deadline is no longer !!!!!
Thanks for all !
|
|
|
|
|
Weird, I have tested myself your application, and another one from [here], and WM_LBUTTONUP mapped does not function ... why do you need this handler ? Maybe you can slove your task in another way ...
|
|
|
|
|
Flaviu2 wrote: why do you need this handler ? Maybe you can slove your task in another way ...
First, I thank you for replying !
I need WM_LBUTTONUP to solve my problem: When I click on "Up/Left Arrow Button" or "Down Arrow Button", my scroll bar's interface become a window classic interface.
I have a mini clip to explain my problem.
|
|
|
|
|
I don't know if it's suitable for you, but why don't change the scrollbar style on left button down ? It's just an ideea ...
|
|
|
|
|
Flaviu2 wrote: I don't know if it's suitable for you, but why don't change the scrollbar style on left button down ? It's just an ideea ...
Thanks for your great idea!
I solved this problem, other problem is appeared.
Could you tell how to "redraw the thumb" in my skin scroll bar (with ListBox) ?
I don't have a algorithm to solve
This is a mini clip to explain my trouble ! (The thumb isn't moved ????? )
Please help me!
Thanks for all!
|
|
|
|
|
Bee cute wrote: Would you show me the detail? What detail? I have given you links to the two features you need to investigate for Win32 controls. You can follow up by checking the documentation for the MFC classes.
|
|
|
|
|
Richard MacCutchan wrote: What detail? I have given you links to the two features you need to investigate for Win32 controls. You can follow up by checking the documentation for the MFC classes.
I have visited your link but I understood a little. I am bad at Win32 (WinAPI). I only know MFC.
Thanks so much for your help!
|
|
|
|
|
Bee cute wrote: I only know MFC You can still inherit from MFC classes and change their behaviour.
|
|
|
|
|
Richard MacCutchan wrote: You can still inherit from MFC classes and change their behaviour.
Thank you for your enthusiasm so much !
I solved this problem and I have other problem.
Could you tell how to "redraw the thumb" in my skin scroll bar (with ListBox) ?
I don't have a algorithm to solve
This is a mini clip to explain my trouble ! (The thumb isn't moved ????? )
Please help me!
Thanks for all!
|
|
|
|
|
Sorry, this is not something I have tried, and I do not have MFC.
|
|
|
|
|
Hve you solve the problem ? Now you can catch OnLButtonUp on your CMyScrollBar class ?
|
|
|
|
|
Hi ,I want to Restart My Mfc Program In some place,But I dont,t know how to do it.
Thanks
|
|
|
|
|
What do you mean exactly?
Do you need your application to restart itself?
Veni, vidi, vici.
|
|
|
|
|
|
|
I want send a form to web server,but server receive http status 405.Capture http picket like this:
Content-Type: multipart/form-data; boundary=---------------------------1f0727f42ab069
Content-Length: 3182
Connection: Keep-Alive
Pragma: no-cache
Cookie: ...
-----------------------------7dd2f42cb9030e
Content-Disposition: form-data; name="param1"
0
-----------------------------7dd2f42cb9030e
Content-Disposition: form-data; name="Title"
My Title 1500
-----------------------------7dd2f42cb9030e
Content-Disposition: form-data; name="pinzhong"
511355
-----------------------------7dd2f42cb9030e
Content-Disposition: form-data; name="Min1"
1500
-----------------------------7dd2f42cb9030e
Content-Disposition: form-data; name="xingbie"
1
Wait online.
|
|
|
|
|
405 means "Method Not Allowed". You get such a response for example when you send a http request with "POST" method but "POST" is not allowed. I used "POST" just as an example, it could be any of the other methods, even a custom one. The data you pasted to your message is a mime encoded stuff.
If you use pure HTTP and not HTTPS then install WireShark on your machine and capture the full http conversation and post it up here to get more accurate answers. (Use the output of the "Follow TCP Stream" feature of wireshark: you can reach "Follow TCP Stream" when you right click on a TCP capture entry in the list.)
|
|
|
|
|
Hey Guys,
Quick question...
I am using WMI method win32_product::install to install a software(VC++). But it doesn't wait for the installation to complete.
Is there any way to execute this method and wait till it is over? Thanks in advance...
-- Varun
|
|
|
|
|
Hi ,In program somethings of MFC wrote In registry,like Toolbar ,menu,and so on,I want to clean Mfc Toolbar info from the registry,in order to switch version and load different toolbar in different version,How to do it,I use SetRegistryKey(TEXT("Myprogram")),HOw to do it,how to clean the toolbar.
Thanks
|
|
|
|
|
|
Are you referring to the keys/values that are written to HKCU\Software\<company>\<product>\Workspace?
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|
Yes,I wrote it in HKEY_CURRENT_USER\Software\Test\workspace,In workspace,there so many infos,like MFCToolBarParameters,MFCToolBar-593980,MFCToolBar-59392 ,MFCToolBar-169 and so on,I don't know delete what
to only delete toolbar.
|
|
|
|
|
Have you looked at CMFCToolBar::RemoveStateFromRegistry() ?
I ran into this same issue about a year ago. Try searching for "cmfctoolbar registry" and see what comes up.
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|