Fedora Linux Support Community & Resources Center
Old 13th June 2009, 08:23 AM
alis Offline
Registered User
Join Date: Mar 2009
Posts: 8
Exclamation How Send and Receive message?

Hi all,
I have 2 class one for subwin and other for win, the window of win class is parent of subwin window.
I create a window and have 4 subwindow, and want to repaint window.
There are some of my code below:
In SubWindow class

XEvent EventPaint;
void SubWindow::Redisplay()
EventPaint.type = Expose;
EventPaint.xexpose.display = display;
EventPaint.xexpose.window = window;
EventPaint.xexpose.send_event = false;
EventPaint.xexpose.count = 1;
EventPaint.xexpose.x = winX;
EventPaint.xexpose.y = winY;
EventPaint.xexpose.width = Width;
EventPaint.xexpose.height = Height;
EventPaint.xexpose.serial = 0;
XSendEvent(display,window,false,ExposureMask,&Even tPaint);
In Window class

case Expose:
// return subwindow number for subwindow Window
WindowNumber = RepaintWindow(event.xexpose.window); switch( WindowNumber )
case 0:
case 1:
In section 1, I printf the EventPaint.xexpose.window and that has correct value,
but in section 2, that is the main program when I printf the EventPaint.xexpose.window,I have only the main window number. And only my main(parent) window redisplay.
I think that send message don't work!

Why when I receive message I receive main window insted of subwindow window??

Reply With Quote

message, receive, send

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send but no receive mail nad4 Servers & Networking 5 28th June 2009 01:12 PM
cannot send mail. Can receive ok. sul Servers & Networking 14 9th March 2009 10:11 PM
Fail to set hour. Message did not receive a reply (timeout by message bus) ligabue1 Using Fedora 1 13th August 2008 04:55 AM
send and receive fax software Chen Using Fedora 6 11th October 2005 01:47 PM
send and receive mail rune Using Fedora 4 5th August 2005 12:43 AM

Current GMT-time: 03:55 (Saturday, 23-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat