|
Usef Marzbani wrote: Can I add an "Edit Box" control to a list box (I mean the same as "Check Box" in CCheckBox)?
do you really need such a control, instead list box with editable list items like this one [Editable ListBox^] may be useful.
modified on Saturday, May 24, 2008 11:26 AM
|
|
|
|
|
Yes! I need a:
("List Box" && "Edit Box" && "Check Box")
I realy need it.
|
|
|
|
|
|
Help me,please!!!
//?Part1:
BOOL DlgMain::InstallDLL()
{
LPTHREAD_START_ROUTINE lpRemoteThreadStartAddress
=(LPTHREAD_START_ROUTINE)::GetProcAddress(m_hDllInstance_Kernel32,"LoadLibraryW");
LPVOID pRemoteFunctionParam=
::VirtualAllocEx(m_hProcess,NULL,MAX_PATH,MEM_COMMIT,PAGE_READWRITE);
if (!pRemoteFunctionParam)
return FALSE;
if (!::WriteProcessMemory(m_hProcess,pRemoteFunctionParam,m_aChar_DllFullPath,MAX_PATH, NULL))
return FALSE;
HANDLE hThread=::CreateRemoteThread
(m_hProcess,0,0,
lpRemoteThreadStartAddress,
pRemoteFunctionParam,
0, 0);
if (!hThread)
return FALSE;
::WaitForSingleObject(hThread,INFINITE);
::GetExitCodeThread(hThread,(LPDWORD)&m_hModule_Dll);
::CloseHandle(hThread);
::VirtualFreeEx(m_hProcess, pRemoteFunctionParam,MAX_PATH,MEM_RELEASE);
return TRUE;
}
//Part2:
BOOL DlgMain::UninstallDLL()
{
LPTHREAD_START_ROUTINE lpRemoteThreadStartAddress
=(LPTHREAD_START_ROUTINE)::GetProcAddress(m_hDllInstance_Kernel32,"FreeLibrary");
HANDLE hThread=CreateRemoteThread
(m_hProcess,0,0,
lpRemoteThreadStartAddress,
(PVOID)m_hModule_Dll,
0, 0);
if (!hThread)
return FALSE;
::WaitForSingleObject(hThread,INFINITE);
CloseHandle(hThread);
return TRUE;
}
NOTE:LoadLibraryW in part1 not LoadLibraryA.Unicode is used!
Question:
Although part1 can work properly,part2 cannot!!
There is no exception when part2 run,but the function ExitInstance() that should be called in the dll won't no be called!!
Why?
Thanks for your help!!
|
|
|
|
|
why are you not using the unicode in second!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
I have created callback to receive MIDI messages.
While it can receive some messages, it is not receiving the full frame message(messages of fast forward/ rewind).
The callback function is:
void CALLBACK ReceiveMidi(HMIDIIN hMidiIn, UINT wMsg, DWORD<br />
dwInstance, <br />
DWORD wParam, DWORD lParam)
and I am opening MIDI input as:
mReturnCode = <br />
midiInOpen(&hdlMidiIn,uhInID,(DWORD)ReceiveMidi,(DWORD)NULL,CALLBACK_FUNCTION);
The "MIDI-OX" a MIDI tool can receive those messages.
What could be wrong with the callback for not receiving some kind of messages.
Some idea will be helpful in my debugging,
Thanks & Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
If there is proper handling(receive the long message from MIDI IN), then all messages are coming.
Otherwise, only the first long message is coming.
Thanks & Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
Hi all,
in VC++2005, combobox is editable,
i want to made it uneditable how can i do this.
please help me for this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Setting CBS_DROPDOWNLIST style should do the trick.
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
|
|
|
|
|
Pallini, You are too fast.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Jijo raj wrote: Pallini, You are too fast.
why?
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
ThatsMe. wrote: why?
When i started typing reply, the thread was empty. When i posted the reply, i saw he already posted.
He is too fast or am I too slow?
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Jijo raj wrote: He is too fast or am I too slow?
Maybe a bit from both, but the thing is... being fast is not always a good property, there are sometimes that slowing down gives you more points :P
hehehehehe :evil: :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: there are sometimes that slowing down gives you more points [Wink] [Poke tongue] [Cool]
heheheheh!!!
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I guess we are in the CUBE not in the codeproject! someone is very fast and some is very slow did you see that movie?
|
|
|
|
|
Yes, I saw Cube and Hypercube, but I don't catch you
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Cube not in Hypercube man was in a room that its time was slow while woman was in a fast room when she spoke man didnt understand what she said,right?
|
|
|
|
|
I know a secrect about Pallini well his keyboard is very fast.
|
|
|
|
|
Hamid. wrote: I know a secrect about Pallini well his keyboard is very fast. [Laugh]
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Select the combobox in the resource editor and set the "Type" property to "Drop List".
Or do you want to set it via code?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application.
I setup an application using fixed client windows. Now I see that I need to add scrolling to the client windows for my drawing. I don't understand what and where exactly needs to change now.
Thanks
|
|
|
|
|
One possibility (the more obvious) is to add a ScrollBar to your view and the implement all the other things by yourself.
Other possibility is to have two different views attached (although it is SDI) to your application, one "normal" view, as you have and another one derived from CScrollView, it will already have almost all the functionality that you need for your scrolling implemented.
And another one, is to choose the CScrollView as parent of your main view from the beggining when you create your application and then change the size of the view dinamically according to your needs. If the size of the view is smaller than your window, the scroll will automatically disabled.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I tried changing things but there is one area of the code that I don't understand. I have two views that I switch between.
void CMainFrame::CreateActivateView(CRuntimeClass *pNewViewClass, UINT nID)
{
CView* pOldView = GetActiveView();
CView* pNewView = NULL;
// plus code to switch between views.
}
But when I try to Change the class to CScrolView I cannot compile the line
CScrollView* pOldView = GetActiveView();
But I don't understand how to change that from CView* to CScrollView*
Thanks
|
|
|
|
|
Try casting:
CScrollView* pOldView = (CScrollView*) GetActiveView ();
Hope it helps
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|