|
hi i am having two buttons reboot and clean if i run the application and press enter it should call clean button. how to do this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Add style BS_DEFPUSHBUTTON to clean button.
From resource editor, chose Default Button option for clean button.
|
|
|
|
|
ok but when i press tab it moves to next button but when i press enter it does the previous button function only
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: but when i press enter it does the previous button function only
What ? Can you explain this ?
|
|
|
|
|
see i am having three buttons clean, reboot and save. initially the focus should be in clean. if we give tab key the focus will be to next button ie reboot when i press enter key with focus on reboot it does not calling the event reboot it just calls the clean button event. what i have to do
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: it does not calling the event reboot it just calls the clean button event. what i have to d
Check how you have mapped correct event handlers.
|
|
|
|
|
i used pretranslate message function but now it just destroys the window. what i have to do please help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: what i have to do please help me
Without seeing relevent code , No.
|
|
|
|
|
deeps_cute wrote: i used pretranslate message function...
How?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Make "Clean" the default button in the resource editor.
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
In my application a variable number of buttons (MFC CButton) are dynamically created. How to dynamically assign callback (OnClick) functions to these buttons? Can someone help me?
Best regards,
Peter de Hon
|
|
|
|
|
P e t e r wrote: In my application a variable number of buttons (MFC CButton) are dynamically created.
There, you must have specified button Id's for those button, use that id and provide function handler in message map.
#define IDC_BUTTON_1 1 //define id
button.Create(...,IDC_BUTTON_1);
BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
ON_BN_CLICKED(IDC_BUTTON_1, OnClickButton1)
END_MESSAGE_MAP()
|
|
|
|
|
Easiest thing to do is just catch all the WM_COMMAND messages with HIWORD (wParam) == BN_CLICKED in your WindowProc and decide which OnClick to call based on the LOWORD (wParam) which will be your button ID.
Judy
|
|
|
|
|
I have read the Marcel Scherpenisse's Article about Dynamic Dialog Class. So I want to use it in my small project, But I have a trouble with ActiveX. I want use an AciveX in my Dialog but I have just made its interface, I can't operate with it such as: change, get its property. Please help me!!!
duc an
|
|
|
|
|
Hi all:
In order to debug the DLL you can specify the "Executable file name"(same thing applies to project property -> Debugging -> Command) on the "Executable For Debug Session" dialog.
So I assume same thing happens to cross project debugging. The scenario was that when you have a solution containing several projects, and one of them set as "StartUp Project"(load the subsequent one by createprocess). This "subsequent" one is the one that I want to debug. But when I have this project "command" setting set as the "StartUp" project, the VS just exited. I don't know if this isn't feasible, or I done something wrong?
BTW what "attach to process" in "Debug" menu is for, Can it applies here?
Thanks
|
|
|
|
|
LiYS wrote: load the subsequent one by createprocess
Can you explain this ?
LiYS wrote: BTW what "attach to process" in "Debug" menu is for, Can it applies here?
LiYS wrote: BTW what "attach to process" in "Debug" menu is for, Can it applies here?
If debug information for process to attach is present in current solution , you can use this option.
|
|
|
|
|
You can start the application which calls CreateProcess from outside the debugger.
Then when you know the process you want to debug has been created you can attach the debugger
to it from Debug/Processes/Attach.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Any hint about write a program which can change other's program at runtime?
Just like this one, it can change the UI of live messenger:
http://memskin.fanatic.net.nz[^]
This programe looks like implement a loader to load the customized resource, then load the WLM. Does anyone know some details about this or some materials to study?
Is it possible to change other program's UI when it's running?
|
|
|
|
|
twomol wrote: know some details about this or some materials to study?
Is it possible to change other program's UI when it's running?
Search UpdateResource in MSDN!
|
|
|
|
|
It seems that this can't work at runtime, This function change the resouce in the image file
I want to just change them in memory
|
|
|
|
|
I don't believe there are any functions that will allow you to change an images resources in memory.
If you're doing a simple replacement, like replacing one bitmap with another, if they are the same size, you can use WriteProcessMemory(...) You can find a whole section in MSDN about the debugging functions. You'll have to find out the memory address of the resource.
If you're trying to do more advanced resource changing operations, you're stuck with having to edit the image file; unless you probably do a LOT of work of modifying the PE header and allocating more memory and such, I don't even know if it is technically possible.
What kind of resource are you trying to change, and if possible, why? It may be better to come up with a different solution.
|
|
|
|
|
How about hook the API about loading resource? Memskin(the software I mentioned in first post)'s author said that he use hook to achieve this.
Currently I don't have any ideas to do this in detail
My purpose is want to make a program to change anohter program's 'skin', so it can be customized to my own taste
|
|
|
|
|
I like to play game online. And I learning VC++. Please show me write a progamer can get value on game online.
wqweq
|
|
|
|
|
|
Programm3r wrote: what the .....
control
|
|
|
|