|
Thank you very much!
Would you explain to me the difference between UpdateData(FALSE) and UpdateData(TRUE)? I am still very confused about it.
|
|
|
|
|
Thank you very much!
now i need send this data to a socket, do u know how to do it?
Thank you,
yj
|
|
|
|
|
yijia_24 wrote: UpdateData(TRUE)?
when u call the UpdateData(TRUE), the values in the control are set to the value variable created for each control.
When u call the UpdateData(FALSE), the values in the variable is set to the correspoding control.
When u call a UpdateData function, it sets/gets all the value to and from all the controls to the variables. some times u may want to take only the text of one edit control. But in that case also all controls in the dialog are upadated. It slows down the program.
U can use the GetDlgItemText() or SetDlgItemText instead of UpdateData()( I recommend this )
nave
|
|
|
|
|
Thank you very much!
I appreciate you spending time over my questiones.
|
|
|
|
|
yijia_24 wrote: Would you explain to me the difference between UpdateData(FALSE) and UpdateData(TRUE)?
Here is a good article on UpdateData Avoiding UpdateData [^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
yijia_24 wrote: I am still very confused about it.
Which is why you should avoid it. See here for more.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Naveen R wrote: yijia_24 wrote:
UpdateData(FALSE);
use
UpdateData( TRUE );
Another reason why UpdateData() should be avoided.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Not sure where to post this, so I hope the admin will bump it somewhere more appropriate (not /dev/null!)
I am looking at Vista RC1, and am curious about the geomentry shaders in DirectX.
Does anyone know about these?
Is there any/much sample code about?
Thx
Hugh
|
|
|
|
|
me wrote: I am looking at Vista RC1, and am curious about the geomentry shaders in DirectX.
The latest DirectX SDK has DX 10 sample code which works only on Vista, so if you have Vista developer preview, you can download the latest SDK and see for yourself.
|
|
|
|
|
Yes, I've had a quick flick through those, but was wondering if there were any other samples 'out in the wild'. It looks like a really powerful tools, and I am also interested in how people are looking to use it.
(I just thought - I should review the license and check we're allowed to post sample code at this early stage!)
H
|
|
|
|
|
me wrote: but was wondering if there were any other samples 'out in the wild'.
Not sure about that, have you seen Crysis tect demo? They use DX 10 technology, but I haven't seen it running on the actual computer, just videos.
|
|
|
|
|
Does FAR have a defined menaing in VC++? I'm trying to work through some code and am puzzled by this usage.
typedef OrderTypeStr FAR *OrderTypePtr;
Thanks
|
|
|
|
|
|
You can ignore "far", it hasn't been relevant since the 16-bit days.
|
|
|
|
|
...i can't find any :P.
Is this concept implemented or do i really have to provide an exact location for every label/button/text box that i use?
|
|
|
|
|
You put the controls exactly where you'd like them to be. You can, however, move/size controls at runtime.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
There are bunches of them. Search for "resizing dialogs" and you should get a bunch of hits.
|
|
|
|
|
I was talking about a microsoft team implementation...i saw some resize helpers around here somewhere but none of them do what i need them to do. It's a bit frustrating 'cause when you're developing some huge application with complicated non gui processes, the last thing you want to focus on is layout. And don't talk to me about the Dialog editor that ships with the .net platform...not everything can be done by mouse clicks
|
|
|
|
|
Okay. I use a third party layout manager myself. What do you need to do specifically that the other layout managers do not do?
|
|
|
|
|
These days a I make my UIs in HTML using the WebBrowser control. The HTML communicates to the app using window.external and the app calls back into the HTML using the IHTMLDocument::get_Script method.
Steve
|
|
|
|
|
Stephen Hewitt wrote: These days a I make my UIs in HTML using the WebBrowser control.
I was under the impression that creating UIs in that manor saw noticeably poor performance. Care to share your experience?
Any pitfalls to be wary of?
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I've never has any problems with perfromance. IE is pretty snappy and can browse pages way more complicated then and UI I've make without any problems.
Steve
|
|
|
|
|
I just started working on this, so any suggestions would be helpful. I have a program that transfers files to and from a CDMA cell-phone chip simulation board. Essentially, a cell phone connected to the PC via a USB cable. The files on the phone are displayed in a GUI, and the program itself transfers the files via programmer-defined packets. The GUI itself is a high-level layer on top of pre-existing firmware level application, which actually controls the phone with transmission/receive messages. I would like to make the GUI a drag and drop application, where the files in a given directory are listed in a listbox on a form, and to transfer files to/fro one can merely drag and drop files in and out of the list box to location designated in the PC. I have looked at implementing drag and drop for files on PC's with MFC, but it seems it's all done with the assumption that the files are all located in files on a PC or a PC-based network. The transfer process itself can take minutes for mp3 files. Does anyone have any thoughts on implementing a shell drag and drop process which will emulate the PC process but the actual transfer of data is done with the pre-existing firmware code.
|
|
|
|
|
Hello,
I am working on a simple program that must load a bitmap and then resize the window that the bitmap is displayed in so that it is the exact size of the bitmap. The program appears to work fine, except for one small problem. When Windows redraws the window that has now been resized, the border on both the right hand side and the bottom do not get drawn. Also, it appears that the orignal "X" box that closes the program is still there. However, if I resize the window manually after the computer has redrwan the window, both borders appear and the old "X" box disappears. Anyone have any idea how I can go about fixing this problem?
Thanks,
Joe
|
|
|
|
|
SetWindowPos has a flag to indicate that the non-client area of the window needs updating. You can either use SetWindowPos to do the resize (if you are not already using SetWindowPos), or you can do something like the following just to force the frame to redraw:
SetWindowPos( Your_HWND_Here, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER | SWP_DRAWFRAME );
Good luck,
Chris Richardson
|
|
|
|