|
Johan Rosengren wrote:
Do you think this is a C++ Builder forum?
Does the board say "Visual C++" or does it say "MFC"? Or cant you read?
Johan Rosengren wrote:
But of course, you are what is commonly called a troll, which I am - sad to say - currently feeding.
I guess you get your kicks out of abusing people. You obvisouly have a rigid mindset. I said "sucky MFC" not "sucky Mr. X so-and-so".
You need to grow up.
And finally,
Stop Flaming. Stick with the program.
Bikram Singh
|
|
|
|
|
bikram singh wrote:
Does the board say "Visual C++" or does it say "MFC"? Or cant you read?
I explained the difference between MFC and C++ Builder - which you seem to have gotten mixed up.
bikram singh wrote:
I guess you get your kicks out of abusing people.
Where did I abuse you?
bikram singh wrote:
You need to grow up.
And finally,
Stop Flaming. Stick with the program.
I'll leave this speaking for itself
|
|
|
|
|
|
|
Will handling CBN_DROPDOWN help?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Yes, that would be the starting point I know, but i am unable to capture any mouse-events on the drop-down listbox itself...
Bikram Singh
|
|
|
|
|
Would CBN_SELCHANGE help? That notifies you when the active selection in the dropdown list changes. You get another notification (CBN_SELENDOK or CBN_SELENDCANCEL , depending on whether the user made a selection or pressed Esc) when the listbox closes.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
That doesnt work either
The only notification I'm getting on the dropped-down listbox is WM_CTLCOLORLISTBOX, which I get each time I do a mouse-over on an item.
Nothing else! I can "capture" a right-click on an item, using GetKeyState(VK_RBUTTON), but that only works bcos I change the item-selection while keeping the R button pressed, which causes a WM_CTLCOLORLISTBOX message , in which I call GetKeyState() as above.
But this isnt a solution for me!
Spy++ shows no messages except WM_CTLCOLORLISTBOX
And thank you for helping out !
Bikram Singh
|
|
|
|
|
Ultimately, I had to subclass the combobox' listbox.
Was wanting to avoid doing it though. But well, if you cant fight em join em i guess!
Bikram Singh
|
|
|
|
|
hi: all
my program is based on dialog,but i want to add menu for it, i insert a menu resource and with the instruction of classwizard select associate the menu with my dialog,but when i do this ,once runing i found no menu on dialog,why , please lend me a hand.
thx
|
|
|
|
|
would have loved to answer, but i dont care to experiment with MFC. MFC sucks big time. Stop using it dude! Give C++ Builder a try, and you'll never come back to VC++ for any of your UI-related tasks. Infact, the only reason VC++ is good is: fast "code-completion". Thats it. From a programmers perspective.
Bikram Singh
|
|
|
|
|
|
rigth click onto your dialog and select properties in the context menu. there, you have a property called menu. select the menu you just created (and saved with an explicit name) in the associated combobox...
there you dialog have its menu...
TOXCCT >>> GEII power
|
|
|
|
|
You'll have to associate the resources, if you have not already done that. In MSVC++, you select the dialog box properties in the resource editor, and select the menu from the dropdown Menu.
Note that you will not be able to see the menu in the resource editor - it only shows when running the program.
|
|
|
|
|
How can I make my app not get focus like On-Screen keyboard in XP.
I try to use WM_MOUSEACTIVATE with return value MA_NOACTIVATE but I can't.When I click button in my dialog,it activates.So i can't send key events to other applications(I use SendInput).
Please help me.
|
|
|
|
|
Information not enough for a good answer.
1. Use EnableWindow(hwnd,FALSE) to disable any mouse or kbd input to the window.
This is the only suggestion as of now...
Bikram Singh
|
|
|
|
|
if you want the focus to bet set at the creation of your dialog, call Cwnd::SetFocus() into OnInitDialog() and make this function return TRUE .
if you just need to set the focus on a control when doing someting into the dialog, just call SetFocus().
TOXCCT >>> GEII power
|
|
|
|
|
I think that you must call SetFocus in WM_SETFOCUS and pass its lparam to SetFocus! Is that right?
|
|
|
|
|
WM_SETFOCUS is a message, not a function. moreover, you can call SetFocus() anywhere (in a handler you created for example)
TOXCCT >>> GEII power
|
|
|
|
|
It is right, WM_SETFOCUS is a message.
When a window receive this message, it can reject its focus by calling SetFocus!
|
|
|
|
|
i need c++ source code (library) to covert bitmap file to gif file, the code is in c or c++ style, not COM or ActiveX.
thanks for any link
cheers
includeh10
|
|
|
|
|
|
Dear Friends,
I am using CAsyncSocket and CSocket for writting a server program. In AsyncSocket I am using
virtual void OnAccept(int nErrorCode);
virtual void OnClose(int nErrorCode);
virtual void OnReceive(int nErrorCode); and also in Socket I am using
virtual void OnAccept(int nErrorCode);
virtual void OnClose(int nErrorCode);
virtual void OnConnect(int nErrorCode);
virtual void OnReceive(int nErrorCode);
Also in the dlg.cpp file,
At InitDialog I am writting
m_cSocketServer.Create(4000);
m_cSocketServer.Listen();
m_cAsyncSocketServer.Create(4000);
m_cSocketServer.Listen();
Also at the Onbutton message I am checking and writting a message into a display like this
void CMFCServerDlg::OnButtonConnection()
{
// TODO: この位置にコントロール通知ハンドラ用のコードを追加してください
char DispBuf[256];
if(m_cSocketServer.Create(4000) && m_cSocketServer.Listen()){
sprintf(DispBuf, "Server Started");
AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf);
}
else{
sprintf(DispBuf, "Connection Failed");
AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf);
}
For other reference....
LRESULT CMFCServerDlg::OnAccept(WPARAM wParam, LPARAM lParam)
{
m_cSocketServer.Accept(m_cAsyncSocketServer);
DestroyFlag = TRUE;
return 0;
}
This is a user message send by the AsyncSocket and Socket from OnAcceptMessage....
My applicaion is very simple and with the above code it is not working. Will you please help to detect the error. Why this code is not suitable to develop a simple server.
Here, I have a dialog box with one button and a text box. Button is for to start a server and text box is nothing but to display a message that server is started.
Please help me to find out the solution.
Thanking You in advance.
Billar
|
|
|
|
|
there are few samples in MSDN (VC CD), you can learn from those samples, they are not complex.
cheers
includeh10
|
|
|
|
|
Hi includeh10
I don't have msdn. So if you can provide the such samples, it will be a great help to me.
Waiting for your reply.......
Billar
|
|
|
|