Is is possible to change the position of the help display in a property grid? I don't see a property that allows you to do this. I only see ones that allow you to change the colour, and it's visibility. Thanks, Greba
greba
Posts
-
Property Grid Help Position -
Stealing Vehicles Isn't a Big Deal?From the article: "Somebody with a screwdriver can open many vehicles," he explained. In my opinion, Somebody with a brick can open many vehicles. Greba, My lack of content on my home page should be entertaining.
-
Intranet google?You did your division the wrong way around there. It's actually 6 cents a document. If it was $16.6 per document then 500,000 documents would cost $8,333,333.33. A much bigger chunk of change. Now if I could only get someone to buy something I sell for that much. Greba, My lack of content on my home page should be entertaining.
-
Socket programmingThe problem with your code is that sizeof(struct message) is going to return the same number no matter what the size of the string. That is because the CString class has a pointer to a buffer which contains the actual string. You have just stumbled upon a problem that occurs very often. There are many ways around this, but the simpliest one I can think of would be to change your struct to:
struct message { char name[256]; };
sizeof(struct message) would then return 256. This method is inefficient, as the whole buffer would be transferred, and it would be tougher to work with the char arrays instead of the CString's. Greba, My lack of content on my home page should be entertaining. -
Retrieving data from internetWhat you're asking for is not that simple. I don't know how you would be able to retrieve information from the IE browser, but if you added a web browser component to a MFC dialog you might be able to get some information that way. Retrieving the text from a table cell is impossible without downloading the whole page. This is a restriction of HTML and HTTP. As for your other question "without opening the browser", yes you can download information from the net without opening a web browser but it would still have to act like a web browser. I can't remember the name at the moment but it is possible to use an API to download a website. Greba, My lack of content on my home page should be entertaining.
-
If CContainedWindowT was a womanCan't we all just be friends... Greba, My lack of content on my home page should be entertaining.
-
correctly play WM_MOUSEWHEELPetr P. wrote: UINT paramL; // place for x-coordinate UINT paramH; // place for y-coordinate I don't know if what you stated above is correct. Under my system I follow this logic: WPARAM is defined as UINT_PTR which in turn is defined as unsigned int LPARAM is defined as LONG_PTR which in turn is defined as long UINT is defined as unsigned int And also under my system sizeof(long) == sizeof(unsigned int). This means that you have enough space in the EVENTMSG structure being passed in to store everything. I doubt there would be any conversion nessisary. I think all you would have to do is store your WPARAM and LPARAM in paramL and paramH. Greba, My lack of content on my home page should be entertaining.
-
correctly play WM_MOUSEWHEELI looked at the definition of the EVENTMSG structure according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookstructures/eventmsg.asp[^] is:
typedef struct {
UINT message;
UINT paramL;
UINT paramH;
DWORD time;
HWND hwnd;
} EVENTMSG, *PEVENTMSG;There is paramL in there. I'm assuming that's what you're looking for. Greba, My lack of content on my home page should be entertaining.
-
Online PurchasesBut then the company is misleading the consumer, which can cause long term loss. In the short term you might get more customers buying, as they see you have everything you want. In the long term these same customers might not use your services as they don't know what there going to get from there order even though the website tells them they can get everything. And also, there's the extra cost of telling the customer that you don't have certain items in stock. Greba, My lack of content on my home page should be entertaining.
-
Winsock recv helpUnder the documentation of the recv function: "If the connection has been gracefully closed, the return value is zero". I'm assuming this would mean that the server has closed the connection. As to if this a correct or not assumption I don't know. It doesn't sound pretty dumb, that is definitely a challanging and rewarding way to learn. If you still have problems with your recv, then I would suggest creating a server which emulates the behavior of the real server, and determine if you can send empty packets, and what happens when you close down a connection. Greba, My lack of content on my home page should be entertaining.
-
Winsock recv helpKnave777Wave wrote: while( bytesRecv == SOCKET_ERROR ) { bytesRecv = recv( m_socket, queryRecvBuff, 1500, 0); I don't have all your code (ie. a server to send responses back) so I can't step through your code to really help you. But based on the code above: SOCKET_ERROR is defined as having value -1 recv(...) is returning 9 bytes to you This explains why the loop is only run once as bytesRecv will contain the value 9 which is not equal to -1 (SOCKET_ERROR). As to if this is the proper value that is being recieved I don't know. If the first packet being sent from the server is of size 9 then this makes sense. Otherwise, I don't really know the reason. Greba, My lack of content on my home page should be entertaining.
-
Use of extern Question.A way to test for the existence of int socket1 in file1 would be use the preprocessor directives:
#ifdef socket1 extern int socket1; #endif
This will tell the preproccesor (what happens before compilation) to only use the code contained between "#ifdef socket1" and "#endif". If socket1 isn't defined (in file2) then the code between the preproccesor directives will not be compiled at all. You will have to be careful though. Assuming you have code that used socket1 in file1 then you will get compile errors saying that socket1 isn't defined. To combat this you can do the following:#ifdef socket1 extern int socket1; #else int socket1; #endif
I believe that answers your question. Greba, My lack of content on my home page should be entertaining. -
OnRButtonUpNow that I've answered my own question :) All I needed to do (it seems) was to add Default() in the OnRButtonUp(...) function. Like this:
BEGIN_MESSAGE_MAP(CMyButton, CButton) ON_WM_RBUTTONUP() END_MESSAGE_MAP() void CMyButton::OnRButtonUp(UINT nFlags, CPoint point) { Default(); }
Greba, My lack of content on my home page should be entertaining. -
OnRButtonUpI would like to be able to capture a right click on a button. CButton doesn't seem to allow me do so, it only has click and double click messages. I tried creating my own button which was derived from CButton. The header file definition:
class CMyButton : public CButton { public: afx_msg void OnRButtonUp(UINT nFlags, CPoint point); DECLARE_MESSAGE_MAP() };
And then in my implementation file I have:BEGIN_MESSAGE_MAP(CMyButton, CButton) ON_WM_RBUTTONUP() END_MESSAGE_MAP() void CMyButton::OnRButtonUp(UINT nFlags, CPoint point) { //Stuff I want to do. }
With this, I capture all right clicks on the dialog, not exactly what I wanted. Is there a way for a button to capture right clicks? I would also like to capture left clicks, but that should be simple once I know how to capure right clicks. Greba, My lack of content on my home page should be entertaining. -
Too much credit!Maximilien wrote: or leave the card at home, hidden, so in case of emergency, you can always use it ( for example, someone steal your wallet ). Just be wary that the credit card company might complain (send you letters) saying that you haven't used your card and might even close down the account. Greba, My lack of content on my home page should be entertaining.
-
A couple of questions for non-AmericansTerry O`Nolley wrote: 1) Does your media constantly say things like "(insert your country here) is the greatest country the world has ever known" or "(insert your country here) is the greatest nation in the history of the world" Not really. The only thing that would qualify would be hockey and that happens rarely like the olympics or world juniors or something like that. Terry O`Nolley wrote: 2) Does your everyday news broadcasts (not on special financial channels - on the regular news broadcasts) constantly mention the stock market numbers and how much interest rates are? First I would have to watch news daily to find out, but what news that I have watched there have been the finicial part of the broadcast but that's a few minute blurb. There is rarely anything on the screen. Terry O`Nolley wrote: It suddenly struck me that maybe the US does things that other countries really don't do. That would make America, America. Now I'm going to look up those hockey scores (Go Calgary :) )
-
JOTD: Things You Know Because of TVRamanan Sivan wrote: If a woman is running away from a monster/faceless fiend she will always trip and fall. If a woman is running away in heels from a monster/faceless fiend she will always break the heel, trip and fall. When visting another planet or chunck of rock there will always be breathable air even on the dark side of the moon. When you want/need to find out about recent events, all you have to do is turn on the TV. Hair will always look perfect no matter if you have been wearing a helmet for the last few hourse, scuba diving, or wrestling the bad guy. All henchmen (PC version = henchpeople) have horrible aim and hand-to-hand fighting skills. Greba, My lack of content on my home page should be entertaining.
-
Interesting ShotDaniel Desormeaux wrote: it looks just like your average world map How come I'm not seeing this average world map :confused: Greba, My lack of content on my home page should be entertaining.
-
Reading code from fileAre you talking about source code? If so then copy/paste in whatever editor you use notepad, visual studio, etc. will work. Greba, My lack of content on my home page should be entertaining.
-
Interesting ShotI like how you can play connect the dots with the lights. If you stare at it long enough do you see some sort of hidden image? Greba, My lack of content on my home page should be entertaining.