|
This is funny. My copy and paste didn't work. I had few lines of code after that were causing an assertion failure...but got it to work....
sft
|
|
|
|
|
Hi,
I would like to Capture the KeyStorokes While Processing a RichEdit Multline Window
From what Object do I supply my version of Pretranslate method
is the Cwnd of the Crichedit object or the Cwnd of the Cdialog method
and the Do I have to Set the Focus before in order to this
thankx
|
|
|
|
|
Hi,
Can you please let me know,how to develope sample Add-ons(code) for MOZILLA FIRE FOX BROWSER (i.e)Browser Handler Object?
Further,please let me know the ways to load & unload them once I launch & unlaunch FIRE FOX ,and its code base.
I am using C++(Visual Studio 6.0 IDE) to develope it and MOZILLA FIRE FOX 2.0 & 3.0 as BROWSERS.
Please help.
Thanks in advance,
V.NATARAJAN
|
|
|
|
|
Please see Mozilla Development Site[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?
Thank you masters!
|
|
|
|
|
Jusef Marzbany wrote: is there a way (e.g a special message) to fine out when a child window is create and visible?
What about IsWindowVisible() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Have a look at WM_NCPAINT, or WM_WINDOWPOSCHANGING - the first will be the first hint of drawing to the screen, and the 2nd may be handy if you look at the fine detail of the changes being made.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
good idea! thnx...
|
|
|
|
|
|
Hi @ all,
to capture sound from microphone I use directSound.
Now I want to automate the volume of mic by capturing.
I think it so. I have a min and max value of volume.
If sample is pipe down the minimum it volume should set to
min volume and if it is louder than max should set to max volume.
What I have to do to resolve this?
|
|
|
|
|
I don't think that it is that simple. I think you have to somehow normalize what you are getting and then try to fit it between your mentioned min and max. Otherwise everything sounds like ..... . So I think you have to transform the sound waves to fit in you min, max borders somehow.
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
Hi everyone
Can you give give me a good tutorial about MultiClient-Server programming,maybe codeproject has articles about make it or using google we can find a lot info about it but I want to some good tutorials and ofcourse about programming in MFC?
Thanks
|
|
|
|
|
MFC has the CSocket[^] class which would be of help to you.
You might want to take a look at the Client/Server Development[^] section of CP. (Use the filter option to view only C++ articles)
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
For socket development I recommend taking a look at sockets.com. Back in 94 when I started with socket development it was about the only online resource available. There are many good books, or were, and I imagine they are still available.
Multi-Threading is a much larger and more complex subject than socket communications. I recommend the book Advanced Windows. There are many resources on the web also you could start here[^]
|
|
|
|
|
|
Does the root folder name have a space in it? should you be enclosing the parameters in quotes?
Beyond that, I don't see any evidence of you asking this question on the forum for that article. I'm going to assume the author is better placed to help you with his article than we are. Or you could download the source on that article and examine the code with your debugger as it runs.
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi Iain,
First of all, thanks for the response. To answer your question.
Iain Clarke wrote: Does the root folder name have a space in it?
Yes, it does have a space in it.
Iain Clarke wrote: Or you could download the source on that article and examine the code with your debugger as it runs.
Yip, then I will do just that, was just looking for a quick fix.
Thanks again.
Regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
How do to add column into control CListCtrl?
supouse send message to Microsoft.
there are all lines uncorrects:
m_pListCtrl->InsertColumn(0, L"Heading 1",LVCFMT_LEFT, 100);
m_pListCtrl->InsertColumn(1, L"Heading 2",LVCFMT_LEFT, 100,-1);
m_pListCtrl->InsertColumn(6, L"Heading 2",LVCFMT_LEFT, 100,-1);
m_pListCtrl->InsertColumn(5, L"Heading 2",LVCFMT_LEFT, 100,-1);
|
|
|
|
|
What happens in your case arent' the columns created. try dragging the items in the header because you use the correct API.
CHIVOTIOV wrote: supouse send message to Microsoft.
CHIVOTIOV wrote: m_pListCtrl->InsertColumn(1, L"Heading 2",LVCFMT_LEFT, 100,-1);
By documentation the item above in bold is the width of the column to -1. May be therefore you are not seeing it
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
In his defense, the -1 is what MFC uses as a signal to go to default values. I had the same thought myself and peeked.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Iain Clarke wrote: I had the same thought myself and peeked.
Iain Clarke wrote: In his defense, the -1 is what MFC uses as a signal to go to default values
Sir, I don't have MSDN installed and net access to MSDN is prohibited to us . Also the solution was posted in URGENCY
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
So, you can play^h^h^h^hhelp on codeproject, but can't access MSDN?
Someone deserves a metaphorical kicking.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
_AnsHUMAN_ wrote: Sir, I don't have MSDN installed and net access to MSDN is prohibited to us Laugh
You can be all over at CP, but no MSDN access? Well, that is utter nonsense. Either this is a joke or you work for some kind of morons.
_AnsHUMAN_ wrote: Also the solution was posted in URGENCY
I think that you should not be posting solutions in urgency, especially with no access to MSDN.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: I think that you should not be posting solutions in urgency
Unless the question was URGNT PLZZZ
|
|
|
|
|
I can make a few incorrect lines too - but what didn't work with them?
Maybe you can't add column 6 without having added columns 1,2,3,4 and 5...
When I struggle with something new to me in MFC, I go back to fundamentals - HWND's and messages...
Here is a page from the REAL documentation - the Platform SDK.
Adding List-View Columns
Columns are used when a list-view control is in report view to display the items and subitems. The following example adds columns to a list-view control. The column headings are defined in the application's header file as string resources, which are numbered consecutively starting with IDS_FIRSTCOLUMN. The number of columns is defined in the header file as C_COLUMNS.
// InitListViewColumns - adds columns to a list-view control.
// Returns TRUE if successful, or FALSE otherwise.
// hWndListView - handle to the list-view control.
BOOL InitListViewColumns(HWND hWndListView)
{
char szText[256]; // temporary buffer
LVCOLUMN lvc;
int iCol;
// Initialize the LVCOLUMN structure.
// The mask specifies that the format, width, text, and subitem
// members of the structure are valid.
lvc.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
// Add the columns.
for (iCol = 0; iCol < C_COLUMNS; iCol++)
{
lvc.iSubItem = iCol;
lvc.pszText = szText;
lvc.cx = 100; // width of column in pixels
if ( iCol < 2 )
{
lvc.fmt = LVCFMT_LEFT; // left-aligned column
}
else
{
lvc.fmt = LVCFMT_RIGHT; // right-aligned column
}
LoadString(hInst, IDS_FIRSTCOLUMN + iCol,
szText, sizeof(szText));
if (ListView_InsertColumn(hWndListView, iCol, &lvc) == -1)
return FALSE;
}
return TRUE;
}
You can adapt this for your purposes if you wish - I certainly wouldn't stay with the code as is, but it might start you on the right road.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|