|
HI ,
How can i scan all the windows which are opened ,i.e which are in the taskbar,
and how can i list those urls?
|
|
|
|
|
|
Pls refer to here- http://www.codeproject.com/staticctrl/LEDScreen.asp
How To Use
Using the class is very simple.
1. Create project.
2. Link library msimg32.lib to project.
3. Add LEDScreen source files to project.
4. Place on a dialog any bitmap image (picture static). This is optional.
5. Place on a dialog (owner bitmap if exists) CStatic. With ClassWizard, create variable m_screen for this CStatic.
6. In your dialog declaration, rename CStatic m_screen to CLEDScreen m_screen. Like this:
I am a Visual C++ 6.0 beginner user. I don't understand what is the 2th step:Link library msimg32.lib to project.
How to do exactly to link the library??
|
|
|
|
|
why don't you ask directly the article's message board[^] down the article ?
|
|
|
|
|
I afraid the article's writer will not read my question...that's why I choose to post here.
I will appreciate any help from you.
|
|
|
|
|
you have less chances that he can read your questionb here than in his article's board...
every question in an article's message baord sends automatically an email to the author of the article.
so please, ask your question over there. Thank you
|
|
|
|
|
This means that you need to link the library code with your code.
In order to do this open your project properties page. (Sorry, I don't remember how to do this in VC6) Once in this dialog open the link section and look for a field that says "additional dependencies". Add the name of the library there.
You may also need to add a path to the location of the lib. In VC6 this options is buried in the tools->options menu. Look for an option/tab that says directories.
Hope that helps.
btw - I believe this *IS* the correct forum to ask your question, as it is a general C++/link question and not something specific to the article.
|
|
|
|
|
Hi folks!
I have a MDI application with a CFormView and a CListCtrl (exactly the CListCtrlEx from (http://www.codeproject.com/listctrl/reusablelistcontrol.asp)) inside it. If I resize the window after initialisation, the CListCtrl keeps it's size/position. I tried near everything to size the CListCtrl to the Window size. Does anybody know a solution?
Thanks!
Regards
Patrick Breucking
modified 15-Apr-22 21:01pm.
|
|
|
|
|
Hi,
you have to hadle WM_SIZE (MFC's OnSize) message in your View, and manually resize the list.
Regards
|
|
|
|
|
If you do this, be sure to check the underlying HWND of at least one of the controls on the form before trying to size it. OnSize(...) may get called once or twice before the control is created, so you should use IsWindow(...) to make sure it has been created and its HWND is valid.
N.B - This might only apply to Dialogs, but I think FormViews have the same issue.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Patrick Breucking wrote: Does anybody know a solution?
Yes. See the Extras section of this article.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks for your answers. I tried and it works, but with some problems. If I make the window smaller, the scrollbars appears. but if i resize a column so much, that it is out of the window, the Scrollbars doesn't appear. It seem that the window only recognizes the initial size of the CListCtrl. I guess that I have to change another property, but I don't now the beast.
modified 15-Apr-22 21:01pm.
|
|
|
|
|
I have data in the form of structure.
I have to send data(structure) from server to client.
Can anybody answer to my query
Oye
|
|
|
|
|
What's the question?
Did I miss something? Hidden content? Read between lines? lol
Regards
|
|
|
|
|
If your structure contains only plain data (no pointers), you can simply send it the standard way (I think you need to pass the address of the structure). If it contains pointers, you need to send everything separately and the contents of the pointers too (and then 'reassemble' everything at the other side)
|
|
|
|
|
I have structure like this
struct
{
int len;
char data[4092];
}filestruct;
where len is the length of file and data is the data of file.
I have to send filestruct from server to client.
Since send()function takes char buff,len when passing ,so how to pass the stucture
Did u get me clearly.
OyeDec
|
|
|
|
|
OyeDec wrote: Since send()function takes char buff,len when passing ,so how to pass the stucture
In general, you simply pass the address of the structure that you cast into a char*. But in your case that won't work because data is a pointer so only the pointer will be passed (only the address), not the contents. You need to first send the len, then the data. Something similar to this (pseudo code):
struct MyStruct;
send(....,(char*)&len,sizeof(int));
send(....,data,len);
So, you don't send your 4092 bytes but only what is needed. At the other side, create a new structure and fill it with the received data (this is left as an exercice for the reader ).
May I ask you why you don't use strings from the Standard Template Library ? It is much more easy to manipulate than char arrays...
|
|
|
|
|
Here i want to send the whole structure and release(free) the structure soon after sending.
I can't go for strings,b'coz i'm passing the image file .
Oye Dec
|
|
|
|
|
Hello,
In a document- view architecture I want to pass a parameter to the document class before the view's ONInitialUpdate is called.
Through the menu which gives a dialog box I get the parameter.I want to pass this parameter to the document class How do I do it?
How to call a parametrized constructor of the document class once I get the parameter from the menu's dialog.The dialog's DoModal() function belongs to the View class.
Thanks
Prithaa
|
|
|
|
|
I know ip address of a remote computer, how can I get its computer name?
I took about 20mins to find it but no luck.
Thanks in advance
|
|
|
|
|
Read chapter 8.6 (gethostbyaddr() ) in This[^] document
|
|
|
|
|
Can i add both bitmap buttons and background color to a caption bar.As a whole can i customize the caption bar.
|
|
|
|
|
Hi,
Yes you can. You can do any painting in non-client area with help of WM_NCPAINT (MFC's OnNcPaint) message.
Regards
|
|
|
|
|
ya i have no doubt with adding back ground color to the title bar.But i am not able to add bitmap button to the title bar(coding).Can you help me out in this?
|
|
|
|
|
Instead of creating a button control, you can use DrawFrameControl(...) to draw a button in its various states and react to the cursor position to determine if the user is attempting to click that button.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|